public class DOMDocumentFactory extends DocumentFactory implements org.w3c.dom.DOMImplementation
DOMDocumentFactory is a factory of DOM4J objects which
implement the W3C DOM API.
cache| Constructor and Description |
|---|
DOMDocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected DOMDocumentType |
asDocumentType(org.w3c.dom.DocumentType docType) |
Attribute |
createAttribute(Element owner,
QName qname,
java.lang.String value) |
CDATA |
createCDATA(java.lang.String text) |
Comment |
createComment(java.lang.String text) |
DocumentType |
createDocType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId) |
Document |
createDocument() |
org.w3c.dom.Document |
createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
org.w3c.dom.DocumentType docType) |
org.w3c.dom.DocumentType |
createDocumentType(java.lang.String qualifiedName,
java.lang.String publicId,
java.lang.String systemId) |
Element |
createElement(QName qname) |
Element |
createElement(QName qname,
int attributeCount) |
Entity |
createEntity(java.lang.String name) |
Entity |
createEntity(java.lang.String name,
java.lang.String text) |
Namespace |
createNamespace(java.lang.String prefix,
java.lang.String uri) |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.util.Map<java.lang.String,java.lang.String> data) |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data) |
Text |
createText(java.lang.String text) |
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version) |
static DocumentFactory |
getInstance()
Access to the singleton instance of this factory.
|
boolean |
hasFeature(java.lang.String feat,
java.lang.String version) |
createAttribute, createDocument, createDocument, createElement, createElement, createPattern, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIspublic static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public Document createDocument()
createDocument in class DocumentFactorypublic DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
createDocType in class DocumentFactorypublic Element createElement(QName qname)
createElement in class DocumentFactorypublic Attribute createAttribute(Element owner, QName qname, java.lang.String value)
createAttribute in class DocumentFactorypublic CDATA createCDATA(java.lang.String text)
createCDATA in class DocumentFactorypublic Comment createComment(java.lang.String text)
createComment in class DocumentFactorypublic Text createText(java.lang.String text)
createText in class DocumentFactorypublic Entity createEntity(java.lang.String name)
public Entity createEntity(java.lang.String name, java.lang.String text)
createEntity in class DocumentFactorypublic Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
createNamespace in class DocumentFactorypublic ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
createProcessingInstruction in class DocumentFactorypublic ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
createProcessingInstruction in class DocumentFactorypublic boolean hasFeature(java.lang.String feat,
java.lang.String version)
hasFeature in interface org.w3c.dom.DOMImplementationpublic org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName,
java.lang.String publicId,
java.lang.String systemId)
throws org.w3c.dom.DOMException
createDocumentType in interface org.w3c.dom.DOMImplementationorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Document createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
org.w3c.dom.DocumentType docType)
throws org.w3c.dom.DOMException
createDocument in interface org.w3c.dom.DOMImplementationorg.w3c.dom.DOMExceptionprotected DOMDocumentType asDocumentType(org.w3c.dom.DocumentType docType)
public java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.DOMImplementation