Class DefaultDocumentType
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractDocumentType
org.dom4j.tree.DefaultDocumentType
- All Implemented Interfaces:
Serializable, Cloneable, DocumentType, Node
- Direct Known Subclasses:
DOMDocumentType
DefaultDocumentType is the DOM4J default implementation of an
XML document type.
- Version:
- $Revision: 1.10 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe root element name of the document typThe external DTD declarationsThe internal DTD declarationsprivate StringHolds value of property publicID.private StringHolds value of property systemID.Fields inherited from class AbstractNode
NODE_TYPE_NAMESFields inherited from interface 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 -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDocumentType(String elementName, String systemID) This will create a newDocumentTypewith a reference to the external DTDDefaultDocumentType(String elementName, String publicID, String systemID) This will create a newDocumentTypewith a reference to the external DTD -
Method Summary
Modifier and TypeMethodDescriptionThis method is the equivalent to theNode.getName()method.Returns a list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackageReturns a list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackageDOCUMENT ME!DOCUMENT ME!voidsetElementName(String elementName) This method is the equivalent to theNode.setName(String)method.voidsetExternalDeclarations(List<Decl> externalDeclarations) Sets the list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackagevoidsetInternalDeclarations(List<Decl> internalDeclarations) Sets the list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackagevoidsetPublicID(String publicID) Sets the public ID of the document typevoidsetSystemID(String systemID) Sets the system ID of the document typeMethods inherited from class AbstractDocumentType
accept, asXML, getName, getNodeType, getPath, getText, getUniquePath, setName, toString, writeMethods inherited from class 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, valueOfMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
Field Details
-
elementName
The root element name of the document typ -
publicID
Holds value of property publicID. -
systemID
Holds value of property systemID. -
internalDeclarations
-
externalDeclarations
-
-
Constructor Details
-
DefaultDocumentType
public DefaultDocumentType() -
DefaultDocumentType
-
DefaultDocumentType
This will create a new
DocumentTypewith a reference to the external DTD- Parameters:
elementName- is the root element name of the document typepublicID- is the public ID of the DTDsystemID- is the system ID of the DTD
-
-
Method Details
-
getElementName
Description copied from interface:DocumentTypeThis method is the equivalent to theNode.getName()method. It is added for clarity.- Returns:
- the root element name for the document type.
-
setElementName
Description copied from interface:DocumentTypeThis method is the equivalent to theNode.setName(String)method. It is added for clarity.- Parameters:
elementName- DOCUMENT ME!
-
getPublicID
-
setPublicID
Sets the public ID of the document type- Parameters:
publicID- DOCUMENT ME!
-
getSystemID
-
setSystemID
Sets the system ID of the document type- Parameters:
systemID- DOCUMENT ME!
-
getInternalDeclarations
Description copied from interface:DocumentTypeReturns a list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackage- Returns:
- DOCUMENT ME!
-
setInternalDeclarations
Description copied from interface:DocumentTypeSets the list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackage- Parameters:
internalDeclarations- DOCUMENT ME!
-
getExternalDeclarations
Description copied from interface:DocumentTypeReturns a list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackage- Returns:
- DOCUMENT ME!
-
setExternalDeclarations
Description copied from interface:DocumentTypeSets the list of internal DTD declaration objects, defined in theorg.dom4j.dtdpackage- Parameters:
externalDeclarations- DOCUMENT ME!
-