Package org.dom4j.dom

Class DOMDocumentFactory

  • All Implemented Interfaces:
    java.io.Serializable, 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.

    See Also:
    Serialized Form
    • Constructor Detail

      • DOMDocumentFactory

        public DOMDocumentFactory()
    • Method Detail

      • getInstance

        public static DocumentFactory getInstance()

        Access to the singleton instance of this factory.

        Returns:
        the default singleon instance
      • createElement

        public Element createElement​(QName qname,
                                     int attributeCount)
      • createEntity

        public Entity createEntity​(java.lang.String name)
      • hasFeature

        public boolean hasFeature​(java.lang.String feat,
                                  java.lang.String version)
        Specified by:
        hasFeature in interface org.w3c.dom.DOMImplementation
      • createDocumentType

        public org.w3c.dom.DocumentType createDocumentType​(java.lang.String qualifiedName,
                                                           java.lang.String publicId,
                                                           java.lang.String systemId)
                                                    throws org.w3c.dom.DOMException
        Specified by:
        createDocumentType in interface org.w3c.dom.DOMImplementation
        Throws:
        org.w3c.dom.DOMException
      • createDocument

        public org.w3c.dom.Document createDocument​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName,
                                                   org.w3c.dom.DocumentType docType)
                                            throws org.w3c.dom.DOMException
        Specified by:
        createDocument in interface org.w3c.dom.DOMImplementation
        Throws:
        org.w3c.dom.DOMException
      • asDocumentType

        protected DOMDocumentType asDocumentType​(org.w3c.dom.DocumentType docType)
      • getFeature

        public java.lang.Object getFeature​(java.lang.String feature,
                                           java.lang.String version)
        Specified by:
        getFeature in interface org.w3c.dom.DOMImplementation