Top Description Fields Methods
org.dom4j

public Interface DocumentType

extends Node
Known Direct Implementers
org.dom4j.tree.AbstractDocumentType
Annotations
@SuppressWarnings:unused
Imports
org.dom4j.dtd.Decl, java.util.List

DocumentType defines an XML DOCTYPE declaration.
Author
James Strachan
Version
$Revision: 1.10 $

Field Summary

Inherited from org.dom4j.Node:
ANY_NODEATTRIBUTE_NODECDATA_SECTION_NODECOMMENT_NODEDOCUMENT_NODEDOCUMENT_TYPE_NODEELEMENT_NODEENTITY_REFERENCE_NODEMAX_NODE_TYPENAMESPACE_NODEPROCESSING_INSTRUCTION_NODETEXT_NODEUNKNOWN_NODE

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the root element name for the document type.
getElementName
()

This method is the equivalent to the getNamemethod.

public List<Decl>

Returns:

DOCUMENT ME!
getExternalDeclarations
()

Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

public List<Decl>

Returns:

DOCUMENT ME!
getInternalDeclarations
()

Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

public String
public String
public void
setElementName(String
DOCUMENT ME!
elementName
)

This method is the equivalent to the setNamemethod.

public void
setExternalDeclarations(List<Decl>
DOCUMENT ME!
declarations
)

Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

public void
setInternalDeclarations(List<Decl>
DOCUMENT ME!
declarations
)

Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

public void
setPublicID(String publicID)

public void
setSystemID(String systemID)

Inherited from org.dom4j.Node:
acceptasXMLasXPathResultclonecreateXPathdetachgetDocumentgetNamegetNodeTypegetNodeTypeNamegetParentgetPathgetPathgetStringValuegetTextgetUniquePathgetUniquePathhasContentisReadOnlymatchesnumberValueOfselectNodesselectNodesselectNodesselectObjectselectSingleNodesetDocumentsetNamesetParentsetTextsupportsParentvalueOfwrite

Method Detail

getElementNameback to summary
public String getElementName()

This method is the equivalent to the getNamemethod. It is added for clarity.

Returns:String

the root element name for the document type.

getExternalDeclarationsback to summary
public List<Decl> getExternalDeclarations()

Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

Returns:List<Decl>

DOCUMENT ME!

getInternalDeclarationsback to summary
public List<Decl> getInternalDeclarations()

Returns a list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

Returns:List<Decl>

DOCUMENT ME!

getPublicIDback to summary
public String getPublicID()
getSystemIDback to summary
public String getSystemID()
setElementNameback to summary
public void setElementName(String elementName)

This method is the equivalent to the setNamemethod. It is added for clarity.

Parameters
elementName:String

DOCUMENT ME!

setExternalDeclarationsback to summary
public void setExternalDeclarations(List<Decl> declarations)

Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

Parameters
declarations:List<Decl>

DOCUMENT ME!

setInternalDeclarationsback to summary
public void setInternalDeclarations(List<Decl> declarations)

Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtdpackage

Parameters
declarations:List<Decl>

DOCUMENT ME!

setPublicIDback to summary
public void setPublicID(String publicID)
setSystemIDback to summary
public void setSystemID(String systemID)