Class JDFResourceAudit

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Comparator<JDFAudit>, ISignalAudit, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFResourceAudit extends JDFAutoResourceAudit implements ISignalAudit
See Also:
  • Constructor Details

    • JDFResourceAudit

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

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

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

    • addNewLink

      @Deprecated public JDFResourceLink addNewLink(JDFResource r, boolean bInput)
      Deprecated.
      use addNewOldLink(true,...)
      add a link to the new resource
      Parameters:
      r - the resource that is valid after modification
      if r is not specified, return the link that already exists
      bInput -
      Returns:
      the ResourceLink object in the ResourceAudit that points to r
    • addOldLink

      @Deprecated public JDFResourceLink addOldLink(JDFResource r, boolean bInput)
      Deprecated.
      use addNewOldLink(false,...)
      add a link to the new resource
      Parameters:
      r - the resource that is valid after modification
      if r is not specified, return the link that already exists
      bInput -
      Returns:
      the ResourceLink object in the ResourceAudit that points to r
    • addNewOldLink

      @Deprecated public JDFResourceLink addNewOldLink(boolean bNew, JDFResource r, boolean bInput)
      Deprecated.
      use addNewOldLink(bNew, r, bInput ? EnumUsage.Input : EnumUsage.Output);
      add a link to one of the resources
      Parameters:
      bNew - new or original?
      r - the resource that was valid before modification
      bInput - usage of the resource
      Returns:
      the ResourceLink object in the ResourceAudit that points to r
    • addNewOldLink

      public JDFResourceLink addNewOldLink(boolean bNew, JDFResource r, JDFResourceLink.EnumUsage usage)
      add a link to one of the resources
      Parameters:
      bNew - true - new link, false - original link
      r - the resource that was valid before modification
      usage - usage of the resource
      Returns:
      the ResourceLink object in the ResourceAudit that points to r
    • getNewLink

      public JDFResourceLink getNewLink()
      add a link to the new resource
      Returns:
      the ResourceLink object in the ResourceAudit
    • getOldLink

      public JDFResourceLink getOldLink()
      add a link to the new resource
      Returns:
      the ResourceLink object in the ResourceAudit
    • getNewOldLink

      public JDFResourceLink getNewOldLink(boolean bNew)
      add a link to one of the resources
      Parameters:
      bNew - new or original?
      Returns:
      the ResourceLink object in the ResourceAudit that points to r
    • updateLink

      public JDFResourceLink updateLink(JDFResourceLink newLink)
      replace
      Parameters:
      newLink - node to insert
      Returns:
      the updated element
    • getResourceLinkVector

      public VElement getResourceLinkVector()
      Get the vector of ResourceLinks
      Returns:
      VElement: the resource links in this
    • getUnknownElements

      public VString getUnknownElements(boolean bIgnorePrivate, int nMax)
      return a vector of unknown element nodenames

      default: getUnknownElements(true, 999999)

      Overrides:
      getUnknownElements in class JDFElement
      Parameters:
      bIgnorePrivate - used by JDFElement during the validation
      nMax - maximum size of the returned vector
      Returns:
      Vector - vector of unknown element nodenames !!! Do not change the signature of this method
    • 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
    • setPartMapVector

      public void setPartMapVector(VJDFAttributeMap vParts)
      set all parts to those defined in vParts
      Overrides:
      setPartMapVector in class JDFElement
      Parameters:
      vParts - vector of attribute maps for the parts
    • setPartMap

      public void setPartMap(JDFAttributeMap mPart)
      set all parts to those defined by mPart
      Overrides:
      setPartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to set
    • removePartMap

      public void removePartMap(JDFAttributeMap mPart)
      remove the part defined by mPart
      Overrides:
      removePartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to remove
    • hasPartMap

      public boolean hasPartMap(JDFAttributeMap mPart)
      check whether the part defined in mPart is included
      Overrides:
      hasPartMap in class JDFElement
      Parameters:
      mPart - attribute map to look for
      Returns:
      boolean - returns true if the part exists
    • toSignalJMF

      public JDFJMF toSignalJMF()
      Specified by:
      toSignalJMF in interface ISignalAudit
      Returns:
      JDFJMF a JMF with a Signal that matches this
      See Also: