Package org.dom4j.dom
Class DOMDocumentFactory
- java.lang.Object
-
- org.dom4j.DocumentFactory
-
- org.dom4j.dom.DOMDocumentFactory
-
- All Implemented Interfaces:
Serializable
,DOMImplementation
public class DOMDocumentFactory extends DocumentFactory implements DOMImplementation
DOMDocumentFactory
is a factory of DOM4J objects which implement the W3C DOM API.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.dom4j.DocumentFactory
cache
-
-
Constructor Summary
Constructors Constructor Description DOMDocumentFactory()
-
Method Summary
-
Methods inherited from class org.dom4j.DocumentFactory
createAttribute, createDocument, createDocument, createElement, createElement, createPattern, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
-
-
-
-
Method Detail
-
getInstance
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createDocument
public Document createDocument()
- Overrides:
createDocument
in classDocumentFactory
-
createDocType
public DocumentType createDocType(String name, String publicId, String systemId)
- Overrides:
createDocType
in classDocumentFactory
-
createElement
public Element createElement(QName qname)
- Overrides:
createElement
in classDocumentFactory
-
createAttribute
public Attribute createAttribute(Element owner, QName qname, String value)
- Overrides:
createAttribute
in classDocumentFactory
-
createCDATA
public CDATA createCDATA(String text)
- Overrides:
createCDATA
in classDocumentFactory
-
createComment
public Comment createComment(String text)
- Overrides:
createComment
in classDocumentFactory
-
createText
public Text createText(String text)
- Overrides:
createText
in classDocumentFactory
-
createEntity
public Entity createEntity(String name, String text)
- Overrides:
createEntity
in classDocumentFactory
-
createNamespace
public Namespace createNamespace(String prefix, String uri)
- Overrides:
createNamespace
in classDocumentFactory
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data)
- Overrides:
createProcessingInstruction
in classDocumentFactory
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, Map<String,String> data)
- Overrides:
createProcessingInstruction
in classDocumentFactory
-
hasFeature
public boolean hasFeature(String feat, String version)
- Specified by:
hasFeature
in interfaceDOMImplementation
-
createDocumentType
public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException
- Specified by:
createDocumentType
in interfaceDOMImplementation
- Throws:
DOMException
-
createDocument
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType) throws DOMException
- Specified by:
createDocument
in interfaceDOMImplementation
- Throws:
DOMException
-
asDocumentType
protected DOMDocumentType asDocumentType(DocumentType docType)
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceDOMImplementation
-
-