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_NAMES
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 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.dtd package |
java.util.List<Decl> |
getInternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the
org.dom4j.dtd package |
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.dtd package |
void |
setInternalDeclarations(java.util.List<Decl> internalDeclarations)
Sets the list of internal DTD declaration objects, defined in the
org.dom4j.dtd package |
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, write
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf
protected 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()
DocumentType
Node.getName()
method. It is added
for clarity.public void setElementName(java.lang.String elementName)
DocumentType
Node.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()
DocumentType
org.dom4j.dtd
packagepublic void setInternalDeclarations(java.util.List<Decl> internalDeclarations)
DocumentType
org.dom4j.dtd
packageinternalDeclarations
- DOCUMENT ME!public java.util.List<Decl> getExternalDeclarations()
DocumentType
org.dom4j.dtd
packagepublic void setExternalDeclarations(java.util.List<Decl> externalDeclarations)
DocumentType
org.dom4j.dtd
packageexternalDeclarations
- DOCUMENT ME!