Class JDFSourceResource

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFSourceResource
    extends JDFElement
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFSourceResource

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

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

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

      • getRefElement

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

        public JDFResource getLinkRoot()
        gets the link of the linked route
        Returns:
      • 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)
      • getSourceLocalName

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

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

        public java.lang.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