org.dom4j.tree

Class DefaultDocument

public class DefaultDocument extends AbstractDocument

DefaultDocument is the default DOM4J default implementation of an XML document.

Version: $Revision: 1.34 $

Author: James Strachan

Field Summary
protected static IteratorEMPTY_ITERATOR
protected static ListEMPTY_LIST
Constructor Summary
DefaultDocument()
DefaultDocument(String name)
DefaultDocument(Element rootElement)
DefaultDocument(DocumentType docType)
DefaultDocument(Element rootElement, DocumentType docType)
DefaultDocument(String name, Element rootElement, DocumentType docType)
Method Summary
DocumentaddDocType(String docTypeName, String publicId, String systemId)
protected voidaddNode(Node node)
protected voidaddNode(int index, Node node)
voidclearContent()
Objectclone()
protected ListcontentList()
DocumentTypegetDocType()
protected DocumentFactorygetDocumentFactory()
EntityResolvergetEntityResolver()
StringgetName()
ElementgetRootElement()
StringgetXMLEncoding()
ProcessingInstructionprocessingInstruction(String target)
ListprocessingInstructions()
ListprocessingInstructions(String target)
protected booleanremoveNode(Node node)
booleanremoveProcessingInstruction(String target)
protected voidrootElementAdded(Element element)
voidsetContent(List content)
voidsetDocType(DocumentType docType)
voidsetDocumentFactory(DocumentFactory documentFactory)
voidsetEntityResolver(EntityResolver entityResolver)
voidsetName(String name)

Field Detail

EMPTY_ITERATOR

protected static final Iterator EMPTY_ITERATOR

EMPTY_LIST

protected static final List EMPTY_LIST

Constructor Detail

DefaultDocument

public DefaultDocument()

DefaultDocument

public DefaultDocument(String name)

DefaultDocument

public DefaultDocument(Element rootElement)

DefaultDocument

public DefaultDocument(DocumentType docType)

DefaultDocument

public DefaultDocument(Element rootElement, DocumentType docType)

DefaultDocument

public DefaultDocument(String name, Element rootElement, DocumentType docType)

Method Detail

addDocType

public Document addDocType(String docTypeName, String publicId, String systemId)

addNode

protected void addNode(Node node)

addNode

protected void addNode(int index, Node node)

clearContent

public void clearContent()

clone

public Object clone()

contentList

protected List contentList()

getDocType

public DocumentType getDocType()

getDocumentFactory

protected DocumentFactory getDocumentFactory()

getEntityResolver

public EntityResolver getEntityResolver()

getName

public String getName()

getRootElement

public Element getRootElement()

getXMLEncoding

public String getXMLEncoding()

processingInstruction

public ProcessingInstruction processingInstruction(String target)

processingInstructions

public List processingInstructions()

processingInstructions

public List processingInstructions(String target)

removeNode

protected boolean removeNode(Node node)

removeProcessingInstruction

public boolean removeProcessingInstruction(String target)

rootElementAdded

protected void rootElementAdded(Element element)

setContent

public void setContent(List content)

setDocType

public void setDocType(DocumentType docType)

setDocumentFactory

public void setDocumentFactory(DocumentFactory documentFactory)

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)

setName

public void setName(String name)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge