Class DocumentJDFImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Document, org.w3c.dom.events.DocumentEvent, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.ranges.DocumentRange, org.w3c.dom.traversal.DocumentTraversal

    public class DocumentJDFImpl
    extends DocumentXMLImpl
    implementation of the JDFLib class factory
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean bInitOnCreate
      skip initialization when creating a new element
      boolean bKElementOnly
      if true, the factory is bypassed and only KElements are created rather than the typesafe element classes
      • Fields inherited from class org.apache.xerces.dom.DocumentImpl

        eventListeners, iteratorReferenceQueue, iterators, mutationEvents, rangeReferenceQueue, ranges
      • Fields inherited from class org.apache.xerces.dom.CoreDocumentImpl

        actualEncoding, allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, fDocumentURI, identifiers, standalone, userData, version, xmlVersionChanged
      • Fields inherited from class org.apache.xerces.dom.ParentNode

        firstChild, fNodeListCache, ownerDocument
      • Fields inherited from class org.apache.xerces.dom.ChildNode

        nextSibling, previousSibling
      • Fields inherited from class org.apache.xerces.dom.NodeImpl

        DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
      • Fields inherited from interface org.w3c.dom.Node

        ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentJDFImpl()
      Constructor for DocumentJDFImpl.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DocumentJDFImpl clone()  
      org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localPart)  
      static java.util.List<java.lang.Class<?>> getClasses​(java.lang.Class<?> clazz)  
      java.lang.Class<?> getFactoryClass​(java.lang.String qualifiedName)
      Searches for the matching factory class in sm_PackageNames If a match could not be found then JDFResource.class is returned if the element is in a resource pool else if the element is in the default name space JDFElement.class is returned else KElement.class is returned will return JDFElement.class or JDFResource.class only.
      protected java.lang.String getHoleTypeClass​(java.lang.String strParentNodeClass)  
      protected java.lang.String getMethodClass​(java.lang.String strParentNodeClass)  
      XMLDocUserData getMyUserData()  
      protected java.lang.String getPositionClass​(java.lang.String strParentNodeClass)  
      protected java.lang.String getShapeClass​(java.lang.String strParentNodeClass)  
      protected java.lang.String getSurfaceClass​(java.lang.String strParentNodeClass)  
      protected XMLDocUserData getXMLDocUserData()
      get/create the associated XMLDocUserData
      static boolean isStaticStrictNSCheck()  
      static void registerCustomClass​(java.lang.String strElement, java.lang.String packagepath)
      register new custom class in the factory
      org.w3c.dom.Node removeChild​(org.w3c.dom.Node arg0)  
      org.w3c.dom.Node replaceChild​(org.w3c.dom.Node arg0, org.w3c.dom.Node arg1)  
      void setParentNode​(org.w3c.dom.Node node)  
      static void setStaticStrictNSCheck​(boolean staticStrictNSCheck)  
      java.lang.String toString()  
      • Methods inherited from class org.apache.xerces.dom.DocumentImpl

        addEventListener, cloneNode, copyEventListeners, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, dispatchingEventToSubtree, getEventListeners, getImplementation, removeEventListener, saveEnclosingAttr, setEventListeners
      • Methods inherited from class org.apache.xerces.dom.CoreDocumentImpl

        abort, adoptNode, callUserDataHandlers, canRenameElements, changed, changes, checkDOMNSErr, checkNamespaceWF, checkQName, clearIdentifiers, cloneNode, createAttribute, createAttributeNS, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElementDefinition, createEntity, createEntityReference, createNotation, createProcessingInstruction, createTextNode, getAsync, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getErrorChecking, getFeature, getIdentifier, getIdentifiers, getInputEncoding, getNodeName, getNodeNumber, getNodeNumber, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getTextContent, getUserData, getUserData, getUserDataRecord, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isKidOK, isValidQName, isXMLName, load, loadXML, normalizeDocument, putIdentifier, removeIdentifier, renameNode, saveXML, setAsync, setDocumentURI, setEncoding, setErrorChecking, setInputEncoding, setStandalone, setStrictErrorChecking, setTextContent, setUserData, setUserData, setVersion, setXmlEncoding, setXmlStandalone, setXmlVersion, undeferChildren
      • Methods inherited from class org.apache.xerces.dom.ParentNode

        getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, isEqualNode, item, normalize, setOwnerDocument, setReadOnly, synchronizeChildren
      • Methods inherited from class org.apache.xerces.dom.ChildNode

        getNextSibling, getParentNode, getPreviousSibling
      • Methods inherited from class org.apache.xerces.dom.NodeImpl

        addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getContainer, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, synchronizeData
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.w3c.dom.Node

        appendChild, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setUserData
    • Field Detail

      • bKElementOnly

        public boolean bKElementOnly
        if true, the factory is bypassed and only KElements are created rather than the typesafe element classes
      • bInitOnCreate

        public boolean bInitOnCreate
        skip initialization when creating a new element
    • Constructor Detail

      • DocumentJDFImpl

        public DocumentJDFImpl()
        Constructor for DocumentJDFImpl.
    • Method Detail

      • isStaticStrictNSCheck

        public static boolean isStaticStrictNSCheck()
        Returns:
        the bStaticStrictNSCheck
      • setStaticStrictNSCheck

        public static void setStaticStrictNSCheck​(boolean staticStrictNSCheck)
        Parameters:
        staticStrictNSCheck - the bStaticStrictNSCheck to set
      • registerCustomClass

        public static void registerCustomClass​(java.lang.String strElement,
                                               java.lang.String packagepath)
        register new custom class in the factory
        Parameters:
        strElement - local name
        packagepath - package path
      • getClasses

        public static java.util.List<java.lang.Class<?>> getClasses​(java.lang.Class<?> clazz)
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName,
                                                   java.lang.String localPart)
        Overrides:
        createElementNS in class DocumentXMLImpl
        Parameters:
        namespaceURI -
        qualifiedName -
        localPart -
        Returns:
        See Also:
        CoreDocumentImpl.createElementNS(java.lang.String, java.lang.String, java.lang.String)
      • getFactoryClass

        public java.lang.Class<?> getFactoryClass​(java.lang.String qualifiedName)
        Searches for the matching factory class in sm_PackageNames If a match could not be found then JDFResource.class is returned if the element is in a resource pool else if the element is in the default name space JDFElement.class is returned else KElement.class is returned will return JDFElement.class or JDFResource.class only.
        Parameters:
        qualifiedName - the qualified name of the class
        Returns:
      • getPositionClass

        protected java.lang.String getPositionClass​(java.lang.String strParentNodeClass)
      • getSurfaceClass

        protected java.lang.String getSurfaceClass​(java.lang.String strParentNodeClass)
      • getShapeClass

        protected java.lang.String getShapeClass​(java.lang.String strParentNodeClass)
      • getMethodClass

        protected java.lang.String getMethodClass​(java.lang.String strParentNodeClass)
      • getHoleTypeClass

        protected java.lang.String getHoleTypeClass​(java.lang.String strParentNodeClass)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DocumentXMLImpl
        See Also:
        Object.toString()
      • setParentNode

        public void setParentNode​(org.w3c.dom.Node node)
        Parameters:
        node -
      • getXMLDocUserData

        protected XMLDocUserData getXMLDocUserData()
        get/create the associated XMLDocUserData
        Returns:
        the XMLDocUserData of this
      • removeChild

        public org.w3c.dom.Node removeChild​(org.w3c.dom.Node arg0)
                                     throws org.w3c.dom.DOMException
        Specified by:
        removeChild in interface org.w3c.dom.Node
        Overrides:
        removeChild in class org.apache.xerces.dom.CoreDocumentImpl
        Throws:
        org.w3c.dom.DOMException
        See Also:
        CoreDocumentImpl.removeChild(org.w3c.dom.Node)
      • replaceChild

        public org.w3c.dom.Node replaceChild​(org.w3c.dom.Node arg0,
                                             org.w3c.dom.Node arg1)
                                      throws org.w3c.dom.DOMException
        Specified by:
        replaceChild in interface org.w3c.dom.Node
        Overrides:
        replaceChild in class org.apache.xerces.dom.CoreDocumentImpl
        Throws:
        org.w3c.dom.DOMException
        See Also:
        CoreDocumentImpl.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)