public class DOMDocumentFactory extends DocumentFactory implements DOMImplementation
DOMDocumentFactory
is a factory of DOM4J objects which
implement the W3C DOM API.
cache
Constructor and Description |
---|
DOMDocumentFactory() |
createAttribute, createDocument, createDocument, createElement, createElement, createPattern, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeature
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public Document createDocument()
createDocument
in class DocumentFactory
public DocumentType createDocType(String name, String publicId, String systemId)
createDocType
in class DocumentFactory
public Element createElement(QName qname)
createElement
in class DocumentFactory
public Attribute createAttribute(Element owner, QName qname, String value)
createAttribute
in class DocumentFactory
public CDATA createCDATA(String text)
createCDATA
in class DocumentFactory
public Comment createComment(String text)
createComment
in class DocumentFactory
public Text createText(String text)
createText
in class DocumentFactory
public Entity createEntity(String name, String text)
createEntity
in class DocumentFactory
public Namespace createNamespace(String prefix, String uri)
createNamespace
in class DocumentFactory
public ProcessingInstruction createProcessingInstruction(String target, String data)
createProcessingInstruction
in class DocumentFactory
public ProcessingInstruction createProcessingInstruction(String target, Map data)
createProcessingInstruction
in class DocumentFactory
public boolean hasFeature(String feat, String version)
hasFeature
in interface DOMImplementation
public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException
createDocumentType
in interface DOMImplementation
DOMException
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType) throws DOMException
createDocument
in interface DOMImplementation
DOMException
protected DOMDocumentType asDocumentType(DocumentType docType)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.