Class JDFSourceResource

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.cip4.jdflib.core.KElement
org.cip4.jdflib.core.JDFElement
org.cip4.jdflib.resource.process.JDFSourceResource
All Implemented Interfaces:
Serializable, Cloneable, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFSourceResource extends JDFElement
See Also:
  • Constructor Details

    • JDFSourceResource

      public JDFSourceResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
      Constructor for JDFSourceResource
      Parameters:
      myOwnerDocument -
      qualifiedName -
    • JDFSourceResource

      public JDFSourceResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
      Constructor for JDFSourceResource
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
    • JDFSourceResource

      public JDFSourceResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Constructor for JDFSourceResource
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • Method Details

    • getRefElement

      public JDFRefElement getRefElement()
      get the refelement
      Returns:
    • getLinkRoot

      public JDFResource getLinkRoot()
      gets the link of the linked route
      Returns:
    • getTarget

      public JDFResource getTarget()
      overrides the deprecated method JDFElement.getTarget()
      Overrides:
      getTarget in class JDFElement
      Returns:
      See Also:
    • getUnknownElements

      public VString getUnknownElements(boolean bIgnorePrivate, int nMax)
      return a vector of unknown element nodenames
      Overrides:
      getUnknownElements in class JDFElement
      Parameters:
      bIgnorePrivate - - used by JDFElement during the validation !!! Do not change the signature of this method
      nMax - - maximum size of the returned vector
      Returns:
      Vector - vector of unknown element nodenames default: GetInvalidElements(true, 999999)
    • getInvalidElements

      public VString getInvalidElements(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
      Description copied from class: JDFElement
      get invalid elements
      Overrides:
      getInvalidElements in class JDFElement
      Parameters:
      level - validation level
      bIgnorePrivate - if true, do not worry about elements in other namespaces
      nMax - maximum size of the returned vector
      Returns:
      VString - a vector of invalid element names
      See Also:
    • getSourceLocalName

      public String getSourceLocalName()
      return the LocalName of the referenced resource
      Returns:
      the LocalName of the referenced resource
    • getSourceID

      public String getSourceID()
      return the ID of the referenced resource
      Returns:
      the ID of the referenced resource
    • getSourcefNodeName

      public String getSourcefNodeName()
      return the NodeName of the referenced resource
      Returns:
      the nodename of the referenced resource
    • deleteRef

      public JDFElement deleteRef(boolean bCheckRefCount)
      delete this sourceResource and it's target
      Parameters:
      bCheckRefCount - if true, check that no other element refers to the target before deleting
      if bCheckRefCount=false, the target is force deleted
      Returns:
      JDFElement the deleted target element
      Since:
      290620
    • getMissingElements

      public VString getMissingElements(int nMax)
      get list of missing elements
      Overrides:
      getMissingElements in class JDFElement
      Parameters:
      nMax - maximum size of the returned vector
      Returns:
      VString vector with nMax missing elements