yawda.utils.html
Class CDocumentWrapper
java.lang.Object
yawda.utils.html.CDocumentWrapper
- All Implemented Interfaces:
- Document, Node
- public final class CDocumentWrapper
- extends Object
- implements Document
- Author:
- Quentin Anciaux
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDocumentWrapper
public CDocumentWrapper(Document innerDoc)
getImplementation
public final DOMImplementation getImplementation()
- Specified by:
getImplementation in interface Document
- See Also:
Document.getImplementation()
createDocumentFragment
public final DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment in interface Document
- See Also:
Document.createDocumentFragment()
getDoctype
public final DocumentType getDoctype()
- Specified by:
getDoctype in interface Document
- See Also:
Document.getDoctype()
getDocumentElement
public final Element getDocumentElement()
- Specified by:
getDocumentElement in interface Document
- See Also:
Document.getDocumentElement()
createAttribute
public final Attr createAttribute(String name)
throws DOMException
- Specified by:
createAttribute in interface Document
- Throws:
DOMException- See Also:
Document.createAttribute(java.lang.String)
createCDATASection
public final CDATASection createCDATASection(String data)
throws DOMException
- Specified by:
createCDATASection in interface Document
- Throws:
DOMException- See Also:
Document.createCDATASection(java.lang.String)
createComment
public final Comment createComment(String data)
- Specified by:
createComment in interface Document
- See Also:
Document.createComment(java.lang.String)
createElement
public final Element createElement(String tagName)
throws DOMException
- Specified by:
createElement in interface Document
- Throws:
DOMException- See Also:
Document.createElement(java.lang.String)
getElementById
public final Element getElementById(String elementId)
- Specified by:
getElementById in interface Document
- See Also:
Document.getElementById(java.lang.String)
createEntityReference
public final EntityReference createEntityReference(String name)
throws DOMException
- Specified by:
createEntityReference in interface Document
- Throws:
DOMException- See Also:
Document.createEntityReference(java.lang.String)
importNode
public final Node importNode(Node importedNode,
boolean deep)
throws DOMException
- Specified by:
importNode in interface Document
- Throws:
DOMException- See Also:
Document.importNode(org.w3c.dom.Node, boolean)
getElementsByTagName
public final NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagName in interface Document
- See Also:
Document.getElementsByTagName(java.lang.String)
createTextNode
public final Text createTextNode(String data)
- Specified by:
createTextNode in interface Document
- See Also:
Document.createTextNode(java.lang.String)
createAttributeNS
public final Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
- Specified by:
createAttributeNS in interface Document
- Throws:
DOMException- See Also:
Document.createAttributeNS(java.lang.String, java.lang.String)
createElementNS
public final Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
- Specified by:
createElementNS in interface Document
- Throws:
DOMException- See Also:
Document.createElementNS(java.lang.String, java.lang.String)
getElementsByTagNameNS
public final NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- Specified by:
getElementsByTagNameNS in interface Document
- See Also:
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
createProcessingInstruction
public final ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
- Specified by:
createProcessingInstruction in interface Document
- Throws:
DOMException- See Also:
Document.createProcessingInstruction(java.lang.String, java.lang.String)
getNodeType
public final short getNodeType()
- Specified by:
getNodeType in interface Node
- See Also:
Node.getNodeType()
normalize
public final void normalize()
- Specified by:
normalize in interface Node
- See Also:
Node.normalize()
hasAttributes
public final boolean hasAttributes()
- Specified by:
hasAttributes in interface Node
- See Also:
Node.hasAttributes()
hasChildNodes
public final boolean hasChildNodes()
- Specified by:
hasChildNodes in interface Node
- See Also:
Node.hasChildNodes()
getLocalName
public final String getLocalName()
- Specified by:
getLocalName in interface Node
- See Also:
Node.getLocalName()
getNamespaceURI
public final String getNamespaceURI()
- Specified by:
getNamespaceURI in interface Node
- See Also:
Node.getNamespaceURI()
getNodeName
public final String getNodeName()
- Specified by:
getNodeName in interface Node
- See Also:
Node.getNodeName()
getNodeValue
public final String getNodeValue()
throws DOMException
- Specified by:
getNodeValue in interface Node
- Throws:
DOMException- See Also:
Node.getNodeValue()
getPrefix
public final String getPrefix()
- Specified by:
getPrefix in interface Node
- See Also:
Node.getPrefix()
setNodeValue
public final void setNodeValue(String nodeValue)
throws DOMException
- Specified by:
setNodeValue in interface Node
- Throws:
DOMException- See Also:
Node.setNodeValue(java.lang.String)
setPrefix
public final void setPrefix(String prefix)
throws DOMException
- Specified by:
setPrefix in interface Node
- Throws:
DOMException- See Also:
Node.setPrefix(java.lang.String)
getOwnerDocument
public final Document getOwnerDocument()
- Specified by:
getOwnerDocument in interface Node
- See Also:
Node.getOwnerDocument()
getAttributes
public final NamedNodeMap getAttributes()
- Specified by:
getAttributes in interface Node
- See Also:
Node.getAttributes()
getFirstChild
public final Node getFirstChild()
- Specified by:
getFirstChild in interface Node
- See Also:
Node.getFirstChild()
getLastChild
public final Node getLastChild()
- Specified by:
getLastChild in interface Node
- See Also:
Node.getLastChild()
getNextSibling
public final Node getNextSibling()
- Specified by:
getNextSibling in interface Node
- See Also:
Node.getNextSibling()
getParentNode
public final Node getParentNode()
- Specified by:
getParentNode in interface Node
- See Also:
Node.getParentNode()
getPreviousSibling
public final Node getPreviousSibling()
- Specified by:
getPreviousSibling in interface Node
- See Also:
Node.getPreviousSibling()
cloneNode
public final Node cloneNode(boolean deep)
- Specified by:
cloneNode in interface Node
- See Also:
Node.cloneNode(boolean)
getChildNodes
public final NodeList getChildNodes()
- Specified by:
getChildNodes in interface Node
- See Also:
Node.getChildNodes()
isSupported
public final boolean isSupported(String feature,
String version)
- Specified by:
isSupported in interface Node
- See Also:
Node.isSupported(java.lang.String, java.lang.String)
appendChild
public final Node appendChild(Node newChild)
throws DOMException
- Specified by:
appendChild in interface Node
- Throws:
DOMException- See Also:
Node.appendChild(org.w3c.dom.Node)
removeChild
public final Node removeChild(Node oldChild)
throws DOMException
- Specified by:
removeChild in interface Node
- Throws:
DOMException- See Also:
Node.removeChild(org.w3c.dom.Node)
insertBefore
public final Node insertBefore(Node newChild,
Node refChild)
throws DOMException
- Specified by:
insertBefore in interface Node
- Throws:
DOMException- See Also:
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
replaceChild
public final Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
- Specified by:
replaceChild in interface Node
- Throws:
DOMException- See Also:
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)