org.dom4j.tree

Class DefaultDocumentType

public class DefaultDocumentType extends AbstractDocumentType

DefaultDocumentType is the DOM4J default implementation of an XML document type.

Version: $Revision: 1.10 $

Author: James Strachan

Field Summary
protected StringelementName
The root element name of the document typ
Constructor Summary
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

Method Summary
StringgetElementName()
ListgetExternalDeclarations()
ListgetInternalDeclarations()
StringgetPublicID()
DOCUMENT ME!
StringgetSystemID()
DOCUMENT ME!
voidsetElementName(String elementName)
voidsetExternalDeclarations(List externalDeclarations)
voidsetInternalDeclarations(List internalDeclarations)
voidsetPublicID(String publicID)
Sets the public ID of the document type
voidsetSystemID(String systemID)
Sets the system ID of the document type

Field Detail

elementName

protected String elementName
The root element name of the document typ

Constructor Detail

DefaultDocumentType

public DefaultDocumentType()

DefaultDocumentType

public DefaultDocumentType(String elementName, String systemID)

This will create a new DocumentType with a reference to the external DTD

Parameters: elementName is the root element name of the document type systemID is the system ID of the external DTD

DefaultDocumentType

public DefaultDocumentType(String elementName, String publicID, String systemID)

This will create a new DocumentType with a reference to the external DTD

Parameters: elementName is the root element name of the document type publicID is the public ID of the DTD systemID is the system ID of the DTD

Method Detail

getElementName

public String getElementName()

getExternalDeclarations

public List getExternalDeclarations()

getInternalDeclarations

public List getInternalDeclarations()

getPublicID

public String getPublicID()
DOCUMENT ME!

Returns: the public ID of the document type

getSystemID

public String getSystemID()
DOCUMENT ME!

Returns: the system ID of the document type

setElementName

public void setElementName(String elementName)

setExternalDeclarations

public void setExternalDeclarations(List externalDeclarations)

setInternalDeclarations

public void setInternalDeclarations(List internalDeclarations)

setPublicID

public void setPublicID(String publicID)
Sets the public ID of the document type

Parameters: publicID DOCUMENT ME!

setSystemID

public void setSystemID(String systemID)
Sets the system ID of the document type

Parameters: systemID DOCUMENT ME!

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge