org.w3c.dom.DOMImplementation
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 | Description |
---|---|
DOMDocumentFactory() |
Modifier and Type | Method | 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.lang.String data) |
|
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.util.Map<java.lang.String,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, setXPathNamespaceURIs
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public Document createDocument()
createDocument
in class DocumentFactory
public DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
createDocType
in class DocumentFactory
public Element createElement(QName qname)
createElement
in class DocumentFactory
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
createAttribute
in class DocumentFactory
public CDATA createCDATA(java.lang.String text)
createCDATA
in class DocumentFactory
public Comment createComment(java.lang.String text)
createComment
in class DocumentFactory
public Text createText(java.lang.String text)
createText
in class DocumentFactory
public Entity createEntity(java.lang.String name)
public Entity createEntity(java.lang.String name, java.lang.String text)
createEntity
in class DocumentFactory
public Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
createNamespace
in class DocumentFactory
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
createProcessingInstruction
in class DocumentFactory
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
createProcessingInstruction
in class DocumentFactory
public boolean hasFeature(java.lang.String feat, java.lang.String version)
hasFeature
in interface org.w3c.dom.DOMImplementation
public 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.DOMImplementation
org.w3c.dom.DOMException
public 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.DOMImplementation
org.w3c.dom.DOMException
protected 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