public class DefaultDocumentType extends AbstractDocumentType
DefaultDocumentType is the DOM4J default implementation of an
XML document type.
| Modifier and Type | Field and Description |
|---|---|
protected 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(String elementName,
String systemID)
This will create a new
DocumentType with a reference to
the external DTD |
DefaultDocumentType(String elementName,
String publicID,
String systemID)
This will create a new
DocumentType with a reference to
the external DTD |
| Modifier and Type | Method and Description |
|---|---|
String |
getElementName()
This method is the equivalent to the
Node.getName()method. |
List |
getExternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
List |
getInternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
String |
getPublicID()
DOCUMENT ME!
|
String |
getSystemID()
DOCUMENT ME!
|
void |
setElementName(String elementName)
This method is the equivalent to the
Node.setName(java.lang.String)method. |
void |
setExternalDeclarations(List externalDeclarations)
Sets the list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
void |
setInternalDeclarations(List internalDeclarations)
Sets the list of internal DTD declaration objects, defined in the
org.dom4j.dtdpackage |
void |
setPublicID(String publicID)
Sets the public ID of the document type
|
void |
setSystemID(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 String elementName
public DefaultDocumentType()
public DefaultDocumentType(String elementName, 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(String elementName, String publicID, 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 String getElementName()
DocumentTypeNode.getName()method. It is added
for clarity.public void setElementName(String elementName)
DocumentTypeNode.setName(java.lang.String)method. It is added
for clarity.elementName - DOCUMENT ME!public String getPublicID()
public void setPublicID(String publicID)
publicID - DOCUMENT ME!public String getSystemID()
public void setSystemID(String systemID)
systemID - DOCUMENT ME!public List getInternalDeclarations()
DocumentTypeorg.dom4j.dtdpackagepublic void setInternalDeclarations(List internalDeclarations)
DocumentTypeorg.dom4j.dtdpackageinternalDeclarations - DOCUMENT ME!public List getExternalDeclarations()
DocumentTypeorg.dom4j.dtdpackagepublic void setExternalDeclarations(List externalDeclarations)
DocumentTypeorg.dom4j.dtdpackageexternalDeclarations - DOCUMENT ME!Copyright © 2012 JBoss by Red Hat. All Rights Reserved.