public class DefaultDocumentType extends AbstractDocumentType
DefaultDocumentType is the DOM4J default implementation of an
XML document type.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
elementName
The root element name of the document typ
|
NODE_TYPE_NAMESANY_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 and Description |
|---|
DefaultDocumentType() |
DefaultDocumentType(java.lang.String elementName,
java.lang.String systemID)
This will create a new
DocumentType with a reference to
the external DTD
|
DefaultDocumentType(java.lang.String elementName,
java.lang.String publicID,
java.lang.String systemID)
This will create a new
DocumentType with a reference to
the external DTD
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElementName()
This method is the equivalent to the
Node.getName()method. |
java.util.List<Decl> |
getExternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
java.util.List<Decl> |
getInternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
java.lang.String |
getPublicID()
DOCUMENT ME!
|
java.lang.String |
getSystemID()
DOCUMENT ME!
|
void |
setElementName(java.lang.String elementName)
This method is the equivalent to the
Node.setName(java.lang.String)method. |
void |
setExternalDeclarations(java.util.List<Decl> externalDeclarations)
Sets the list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
void |
setInternalDeclarations(java.util.List<Decl> internalDeclarations)
Sets the list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
void |
setPublicID(java.lang.String publicID)
Sets the public ID of the document type
|
void |
setSystemID(java.lang.String systemID)
Sets the system ID of the document type
|
accept, asXML, getName, getNodeType, getPath, getText, getUniquePath, setName, toString, writeasXPathResult, 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, valueOfequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOfprotected java.lang.String elementName
public DefaultDocumentType()
public DefaultDocumentType(java.lang.String elementName,
java.lang.String systemID)
This will create a new DocumentType with a reference to
the external DTD
elementName - is the root element name of the document typesystemID - is the system ID of the external DTDpublic DefaultDocumentType(java.lang.String elementName,
java.lang.String publicID,
java.lang.String systemID)
This will create a new DocumentType with a reference to
the external DTD
elementName - is the root element name of the document typepublicID - is the public ID of the DTDsystemID - is the system ID of the DTDpublic java.lang.String getElementName()
DocumentTypeNode.getName()method. It is added
for clarity.public void setElementName(java.lang.String elementName)
DocumentTypeNode.setName(java.lang.String)method. It is added
for clarity.elementName - DOCUMENT ME!public java.lang.String getPublicID()
public void setPublicID(java.lang.String publicID)
publicID - DOCUMENT ME!public java.lang.String getSystemID()
public void setSystemID(java.lang.String systemID)
systemID - DOCUMENT ME!public java.util.List<Decl> getInternalDeclarations()
DocumentTypeorg.dom4j.dtdpackagepublic void setInternalDeclarations(java.util.List<Decl> internalDeclarations)
DocumentTypeorg.dom4j.dtdpackageinternalDeclarations - DOCUMENT ME!public java.util.List<Decl> getExternalDeclarations()
DocumentTypeorg.dom4j.dtdpackagepublic void setExternalDeclarations(java.util.List<Decl> externalDeclarations)
DocumentTypeorg.dom4j.dtdpackageexternalDeclarations - DOCUMENT ME!