Package org.dom4j.dom
Class DOMDocumentType
- java.lang.Object
 - 
- org.dom4j.tree.AbstractNode
 - 
- org.dom4j.tree.AbstractDocumentType
 - 
- org.dom4j.tree.DefaultDocumentType
 - 
- org.dom4j.dom.DOMDocumentType
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,DocumentType,Node,DocumentType,Node
public class DOMDocumentType extends DefaultDocumentType implements DocumentType
DOMDocumentTypeimplements a DocumentType node which supports the W3C DOM API.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.dom4j.tree.DefaultDocumentType
elementName 
- 
Fields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMES 
- 
Fields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE 
- 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DOMDocumentType()DOMDocumentType(String elementName, String systemID)DOMDocumentType(String name, String publicID, String systemID) 
- 
Method Summary
- 
Methods inherited from class org.dom4j.tree.DefaultDocumentType
getElementName, getExternalDeclarations, getInternalDeclarations, getPublicID, getSystemID, setElementName, setExternalDeclarations, setInternalDeclarations, setPublicID, setSystemID 
- 
Methods inherited from class org.dom4j.tree.AbstractDocumentType
accept, asXML, getName, getPath, getText, getUniquePath, setName, toString, write 
- 
Methods inherited from class org.dom4j.tree.AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getDocument, getDocumentFactory, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf 
- 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.w3c.dom.DocumentType
getName 
- 
Methods inherited from interface org.dom4j.Node
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getNamespaceURI
public String getNamespaceURI()
- Specified by:
 getNamespaceURIin interfaceNode
 
- 
setPrefix
public void setPrefix(String prefix) throws DOMException
- Specified by:
 setPrefixin interfaceNode- Throws:
 DOMException
 
- 
getLocalName
public String getLocalName()
- Specified by:
 getLocalNamein interfaceNode
 
- 
getNodeName
public String getNodeName()
- Specified by:
 getNodeNamein interfaceNode
 
- 
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
 getNodeValuein interfaceNode- Throws:
 DOMException
 
- 
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
- Specified by:
 setNodeValuein interfaceNode- Throws:
 DOMException
 
- 
getParentNode
public Node getParentNode()
- Specified by:
 getParentNodein interfaceNode
 
- 
getChildNodes
public NodeList getChildNodes()
- Specified by:
 getChildNodesin interfaceNode
 
- 
getFirstChild
public Node getFirstChild()
- Specified by:
 getFirstChildin interfaceNode
 
- 
getLastChild
public Node getLastChild()
- Specified by:
 getLastChildin interfaceNode
 
- 
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
 getPreviousSiblingin interfaceNode
 
- 
getNextSibling
public Node getNextSibling()
- Specified by:
 getNextSiblingin interfaceNode
 
- 
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
 getAttributesin interfaceNode
 
- 
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
 getOwnerDocumentin interfaceNode
 
- 
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
 insertBeforein interfaceNode- Throws:
 DOMException
 
- 
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
 replaceChildin interfaceNode- Throws:
 DOMException
 
- 
removeChild
public Node removeChild(Node oldChild) throws DOMException
- Specified by:
 removeChildin interfaceNode- Throws:
 DOMException
 
- 
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
 appendChildin interfaceNode- Throws:
 DOMException
 
- 
hasChildNodes
public boolean hasChildNodes()
- Specified by:
 hasChildNodesin interfaceNode
 
- 
isSupported
public boolean isSupported(String feature, String version)
- Specified by:
 isSupportedin interfaceNode
 
- 
hasAttributes
public boolean hasAttributes()
- Specified by:
 hasAttributesin interfaceNode
 
- 
getEntities
public NamedNodeMap getEntities()
- Specified by:
 getEntitiesin interfaceDocumentType
 
- 
getNotations
public NamedNodeMap getNotations()
- Specified by:
 getNotationsin interfaceDocumentType
 
- 
getPublicId
public String getPublicId()
- Specified by:
 getPublicIdin interfaceDocumentType
 
- 
getSystemId
public String getSystemId()
- Specified by:
 getSystemIdin interfaceDocumentType
 
- 
getInternalSubset
public String getInternalSubset()
- Specified by:
 getInternalSubsetin interfaceDocumentType
 
- 
getBaseURI
public String getBaseURI()
- Specified by:
 getBaseURIin interfaceNode
 
- 
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
 compareDocumentPositionin interfaceNode- Throws:
 DOMException
 
- 
getTextContent
public String getTextContent() throws DOMException
- Specified by:
 getTextContentin interfaceNode- Throws:
 DOMException
 
- 
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
 setTextContentin interfaceNode- Throws:
 DOMException
 
- 
isSameNode
public boolean isSameNode(Node other)
- Specified by:
 isSameNodein interfaceNode
 
- 
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
 lookupPrefixin interfaceNode
 
- 
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
 isDefaultNamespacein interfaceNode
 
- 
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
 lookupNamespaceURIin interfaceNode
 
- 
isEqualNode
public boolean isEqualNode(Node other)
- Specified by:
 isEqualNodein interfaceNode
 
- 
getFeature
public Object getFeature(String feature, String version)
- Specified by:
 getFeaturein interfaceNode
 
- 
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
 setUserDatain interfaceNode
 
- 
getUserData
public Object getUserData(String key)
- Specified by:
 getUserDatain interfaceNode
 
- 
getNodeType
public short getNodeType()
Description copied from interface:NodeReturns the code according to the type of node. This makes processing nodes polymorphically much easier as the switch statement can be used instead of multiple if (instanceof) statements.- Specified by:
 getNodeTypein interfaceNode- Specified by:
 getNodeTypein interfaceNode- Overrides:
 getNodeTypein classAbstractDocumentType- Returns:
 - a W3C DOM complient code for the node type such as ELEMENT_NODE or ATTRIBUTE_NODE
 
 
 - 
 
 -