Package org.dom4j.dom
Class DOMDocumentFactory
java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.dom.DOMDocumentFactory
- All Implemented Interfaces:
Serializable
,DOMImplementation
DOMDocumentFactory
is a factory of DOM4J objects which
implement the W3C DOM API.
- Version:
- $Revision: 1.21 $
- Author:
- James Strachan
- See Also:
-
Field Summary
Fields inherited from class org.dom4j.DocumentFactory
cache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DOMDocumentType
asDocumentType
(DocumentType docType) createAttribute
(Element owner, QName qname, String value) createCDATA
(String text) createComment
(String text) createDocType
(String name, String publicId, String systemId) createDocument
(String namespaceURI, String qualifiedName, DocumentType docType) createDocumentType
(String qualifiedName, String publicId, String systemId) createElement
(QName qname) createElement
(QName qname, int attributeCount) createEntity
(String name) createEntity
(String name, String text) createNamespace
(String prefix, String uri) createProcessingInstruction
(String target, String data) createProcessingInstruction
(String target, Map<String, String> data) createText
(String text) getFeature
(String feature, String version) static DocumentFactory
Access to the singleton instance of this factory.boolean
hasFeature
(String feat, String version) 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
-
Constructor Details
-
DOMDocumentFactory
public DOMDocumentFactory()
-
-
Method Details
-
getInstance
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createDocument
- Overrides:
createDocument
in classDocumentFactory
-
createDocType
- Overrides:
createDocType
in classDocumentFactory
-
createElement
- Overrides:
createElement
in classDocumentFactory
-
createElement
-
createAttribute
- Overrides:
createAttribute
in classDocumentFactory
-
createCDATA
- Overrides:
createCDATA
in classDocumentFactory
-
createComment
- Overrides:
createComment
in classDocumentFactory
-
createText
- Overrides:
createText
in classDocumentFactory
-
createEntity
-
createEntity
- Overrides:
createEntity
in classDocumentFactory
-
createNamespace
- Overrides:
createNamespace
in classDocumentFactory
-
createProcessingInstruction
- Overrides:
createProcessingInstruction
in classDocumentFactory
-
createProcessingInstruction
- Overrides:
createProcessingInstruction
in classDocumentFactory
-
hasFeature
- 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
-
getFeature
- Specified by:
getFeature
in interfaceDOMImplementation
-