org.dom4j.dom

Class DOMDocumentFactory

public class DOMDocumentFactory extends DocumentFactory implements DOMImplementation

DOMDocumentFactory is a factory of DOM4J objects which implement the W3C DOM API.

Version: $Revision: 1.21 $

Author: James Strachan

Method Summary
protected DOMDocumentTypeasDocumentType(DocumentType docType)
AttributecreateAttribute(Element owner, QName qname, String value)
CDATAcreateCDATA(String text)
CommentcreateComment(String text)
DocumentTypecreateDocType(String name, String publicId, String systemId)
DocumentcreateDocument()
DocumentcreateDocument(String namespaceURI, String qualifiedName, DocumentType docType)
DocumentTypecreateDocumentType(String qualifiedName, String publicId, String systemId)
ElementcreateElement(QName qname)
ElementcreateElement(QName qname, int attributeCount)
EntitycreateEntity(String name)
EntitycreateEntity(String name, String text)
NamespacecreateNamespace(String prefix, String uri)
ProcessingInstructioncreateProcessingInstruction(String target, String data)
ProcessingInstructioncreateProcessingInstruction(String target, Map data)
TextcreateText(String text)
static DocumentFactorygetInstance()

Access to the singleton instance of this factory.

booleanhasFeature(String feat, String version)

Method Detail

asDocumentType

protected DOMDocumentType asDocumentType(DocumentType docType)

createAttribute

public Attribute createAttribute(Element owner, QName qname, String value)

createCDATA

public CDATA createCDATA(String text)

createComment

public Comment createComment(String text)

createDocType

public DocumentType createDocType(String name, String publicId, String systemId)

createDocument

public Document createDocument()

createDocument

public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType)

createDocumentType

public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)

createElement

public Element createElement(QName qname)

createElement

public Element createElement(QName qname, int attributeCount)

createEntity

public Entity createEntity(String name)

createEntity

public Entity createEntity(String name, String text)

createNamespace

public Namespace createNamespace(String prefix, String uri)

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target, String data)

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target, Map data)

createText

public Text createText(String text)

getInstance

public static DocumentFactory getInstance()

Access to the singleton instance of this factory.

Returns: the default singleon instance

hasFeature

public boolean hasFeature(String feat, String version)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge