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
|
private List |
externalDeclarations
The external DTD declarations
|
private List |
internalDeclarations
The internal DTD declarations
|
private String |
publicID
Holds value of property publicID.
|
private String |
systemID
Holds value of property systemID.
|
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(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.dtd package |
List |
getInternalDeclarations()
Returns a list of internal DTD declaration objects,
defined in the
org.dom4j.dtd package |
String |
getPublicID() |
String |
getSystemID() |
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.dtd package |
void |
setInternalDeclarations(List internalDeclarations)
Sets the list of internal DTD declaration objects,
defined in the
org.dom4j.dtd package |
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, 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 String elementName
private List internalDeclarations
private List externalDeclarations
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()
DocumentType
Node.getName()
method. It is added for clarity.public void setElementName(String elementName)
DocumentType
Node.setName(java.lang.String)
method. It is added for clarity.public String getPublicID()
public void setPublicID(String publicID)
public String getSystemID()
public void setSystemID(String systemID)
public List getInternalDeclarations()
DocumentType
org.dom4j.dtd
packagepublic void setInternalDeclarations(List internalDeclarations)
DocumentType
org.dom4j.dtd
packagepublic List getExternalDeclarations()
DocumentType
org.dom4j.dtd
packagepublic void setExternalDeclarations(List externalDeclarations)
DocumentType
org.dom4j.dtd
packageWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses