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 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static SingletonStrategy<DOMDocumentFactory> The Singleton instanceFields inherited from class DocumentFactory
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DOMDocumentTypeasDocumentType(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 DocumentFactoryAccess to the singleton instance of this factory.booleanhasFeature(String feat, String version) Methods inherited from class DocumentFactory
createAttribute, createDocument, createDocument, createElement, createElement, createPattern, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
-
Field Details
-
singleton
The Singleton instance
-
-
Constructor Details
-
DOMDocumentFactory
public DOMDocumentFactory()
-
-
Method Details
-
getInstance
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createDocument
- Overrides:
createDocumentin classDocumentFactory
-
createDocType
- Overrides:
createDocTypein classDocumentFactory
-
createElement
- Overrides:
createElementin classDocumentFactory
-
createElement
-
createAttribute
- Overrides:
createAttributein classDocumentFactory
-
createCDATA
- Overrides:
createCDATAin classDocumentFactory
-
createComment
- Overrides:
createCommentin classDocumentFactory
-
createText
- Overrides:
createTextin classDocumentFactory
-
createEntity
-
createEntity
- Overrides:
createEntityin classDocumentFactory
-
createNamespace
- Overrides:
createNamespacein classDocumentFactory
-
createProcessingInstruction
- Overrides:
createProcessingInstructionin classDocumentFactory
-
createProcessingInstruction
- Overrides:
createProcessingInstructionin classDocumentFactory
-
hasFeature
- Specified by:
hasFeaturein interfaceDOMImplementation
-
createDocumentType
public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException - Specified by:
createDocumentTypein interfaceDOMImplementation- Throws:
DOMException
-
createDocument
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType) throws DOMException - Specified by:
createDocumentin interfaceDOMImplementation- Throws:
DOMException
-
asDocumentType
-
getFeature
- Specified by:
getFeaturein interfaceDOMImplementation
-