|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractDocumentType
org.dom4j.tree.DefaultDocumentType
DefaultDocumentType
is the DOM4J default implementation
of an XML document type.
Field Summary | |
protected java.lang.String |
elementName
The root element name of the document typ |
Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
Fields inherited from interface org.dom4j.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 | |
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 |
Method Summary | |
java.lang.String |
getElementName()
This method is the equivalent to the AbstractDocumentType.getName()
method. |
java.util.List |
getExternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtd package |
java.util.List |
getInternalDeclarations()
Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtd package |
java.lang.String |
getPublicID()
|
java.lang.String |
getSystemID()
|
void |
setElementName(java.lang.String elementName)
This method is the equivalent to the AbstractDocumentType.setName(java.lang.String)
method. |
void |
setExternalDeclarations(java.util.List externalDeclarations)
Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtd package |
void |
setInternalDeclarations(java.util.List 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 |
Methods inherited from class org.dom4j.tree.AbstractDocumentType |
accept, asXML, getName, getNodeType, getPath, getText, getUniquePath, setName, toString, write |
Methods inherited from class org.dom4j.tree.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, valueOf |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.dom4j.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 Detail |
protected java.lang.String elementName
Constructor Detail |
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 DTDMethod Detail |
public 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.
public java.lang.String getPublicID()
public void setPublicID(java.lang.String publicID)
public java.lang.String getSystemID()
public void setSystemID(java.lang.String systemID)
public java.util.List getInternalDeclarations()
DocumentType
org.dom4j.dtd
package
public void setInternalDeclarations(java.util.List internalDeclarations)
DocumentType
org.dom4j.dtd
package
public java.util.List getExternalDeclarations()
DocumentType
org.dom4j.dtd
package
public void setExternalDeclarations(java.util.List externalDeclarations)
DocumentType
org.dom4j.dtd
package
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |