DOMDocumentFactory is a factory of DOM4J objects which
implement the W3C DOM API.
| Modifier and Type | Field and Description |
|---|---|
| private static SingletonStrategy | singleton
The Singleton instance
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected DOMDocumentType | |
| public Attribute | createAttribute(Element owner, QName qname, String value)
Overrides org. |
| public CDATA | |
| public Comment | |
| public DocumentType | createDocType(String name, String publicId, String systemId)
Overrides org. |
| public Document | |
| public Document | createDocument(String
The namespace URI of the document element to
create or namespaceURI, String null.The qualified name of the document element to be
created or qualifiedName, DocumentType null.The type of document to be created or docType)null.
When doctype is not null, its
Node.ownerDocument attribute is set to the document
being created.Implements org. |
| public DocumentType | createDocumentType(String
The qualified name of the document type to be
created. qualifiedName, String The external subset public identifier. publicId, String The external subset system identifier. systemId)Implements org. DocumentType node.
|
| public Element | |
| public Element | |
| public Entity | |
| public Entity | |
| public Namespace | |
| public ProcessingInstruction | createProcessingInstruction(String target, String data)
Overrides org. |
| public ProcessingInstruction | createProcessingInstruction(String target, Map<String, String> data)
Overrides org. |
| public Text | |
| public Object | getFeature(String
The name of the feature requested. Note that any plus
sign "+" prepended to the name of the feature will be ignored since
it is not significant in the context of this method. feature, String This is the version number of the feature to test. version)Implements org. |
| public static DocumentFactory | Returns: the default singleon instanceHides org. Access to the singleton instance of this factory. |
| public boolean | hasFeature(String
The name of the feature to test. feat, String This is the version number of the feature to test. version)Implements org. |
| singleton | back to summary |
|---|---|
| private static SingletonStrategy<DOMDocumentFactory> singleton Hides org. The Singleton instance | |
| DOMDocumentFactory | back to summary |
|---|---|
| public DOMDocumentFactory() | |
| asDocumentType | back to summary |
|---|---|
| protected DOMDocumentType asDocumentType(DocumentType docType) | |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(Element owner, QName qname, String value) Overrides org. | |
| createCDATA | back to summary |
|---|---|
| public CDATA createCDATA(String text) Overrides org. | |
| createComment | back to summary |
|---|---|
| public Comment createComment(String text) Overrides org. | |
| createDocType | back to summary |
|---|---|
| public DocumentType createDocType(String name, String publicId, String systemId) Overrides org. | |
| createDocument | back to summary |
|---|---|
| public Document createDocument() Overrides org. | |
| createDocument | back to summary |
|---|---|
| public Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType) throws DOMException Implements org. Doc from org. Creates a DOM Document object of the specified type with its document
element.
| |
| createDocumentType | back to summary |
|---|---|
| public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException Implements org. Doc from org. Creates an empty
| |
| createElement | back to summary |
|---|---|
| public Element createElement(QName qname) Overrides org. | |
| createElement | back to summary |
|---|---|
| public Element createElement(QName qname, int attributeCount) | |
| createEntity | back to summary |
|---|---|
| public Entity createEntity(String name) | |
| createEntity | back to summary |
|---|---|
| public Entity createEntity(String name, String text) Overrides org. | |
| createNamespace | back to summary |
|---|---|
| public Namespace createNamespace(String prefix, String uri) Overrides org. | |
| createProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction createProcessingInstruction(String target, String data) Overrides org. | |
| createProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction createProcessingInstruction(String target, Map<String, String> data) Overrides org. | |
| createText | back to summary |
|---|---|
| public Text createText(String text) Overrides org. | |
| getFeature | back to summary |
|---|---|
| public Object getFeature(String feature, String version) Implements org. Doc from org. This method returns a specialized object which implements the
specialized APIs of the specified feature and version, as specified
in DOM Features. The specialized object may also be obtained by using
binding-specific casting methods but is not necessarily expected to,
as discussed in . This method also allow the implementation to
provide specialized objects which do not support the
| |
| getInstance | back to summary |
|---|---|
| public static DocumentFactory getInstance() Hides org. Access to the singleton instance of this factory.
| |
| hasFeature | back to summary |
|---|---|
| public boolean hasFeature(String feat, String version) Implements org. Doc from org. Test if the DOM implementation implements a specific feature and version, as specified in DOM Features. | |