Class DocumentJDFImpl

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.CoreDocumentImpl
org.apache.xerces.dom.DocumentImpl
org.cip4.jdflib.core.DocumentXMLImpl
org.cip4.jdflib.core.DocumentJDFImpl
All Implemented Interfaces:
Serializable, Cloneable, Document, DocumentEvent, EventTarget, Node, NodeList, DocumentRange, DocumentTraversal

public class DocumentJDFImpl extends DocumentXMLImpl
implementation of the JDFLib class factory
See Also:
  • Field Details

    • 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 Details

    • DocumentJDFImpl

      public DocumentJDFImpl()
      Constructor for DocumentJDFImpl.
  • Method Details

    • isStaticStrictNSCheck

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

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

      public DocumentJDFImpl clone()
      Overrides:
      clone in class DocumentXMLImpl
      See Also:
      • CoreDocumentImpl.clone()
    • registerCustomClass

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

      public static List<Class<?>> getClasses(Class<?> clazz)
    • createElementNS

      public Element createElementNS(String namespaceURI, String qualifiedName, 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 Class<?> getFactoryClass(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 String getPositionClass(String strParentNodeClass)
    • getSurfaceClass

      protected String getSurfaceClass(String strParentNodeClass)
    • getShapeClass

      protected String getShapeClass(String strParentNodeClass)
    • getMethodClass

      protected String getMethodClass(String strParentNodeClass)
    • getHoleTypeClass

      protected String getHoleTypeClass(String strParentNodeClass)
    • toString

      public String toString()
      Overrides:
      toString in class DocumentXMLImpl
      See Also:
    • setParentNode

      public void setParentNode(Node node)
      Parameters:
      node -
    • getXMLDocUserData

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

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

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

      public XMLDocUserData getMyUserData()
      Returns: