Class JDFDevice

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, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFDevice extends JDFAutoDevice
See Also:
  • Constructor Details

    • JDFDevice

      public JDFDevice(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
      Constructor for JDFDevice
      Parameters:
      myOwnerDocument -
      qualifiedName -
      Throws:
      DOMException
    • JDFDevice

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

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

    • toString

      public String toString()
      Description copied from class: KElement
      this to string, used for debug purpose mostly
      Overrides:
      toString in class KElement
      Returns:
      string representativ of this
      See Also:
    • getMatchingTypeNodeVector

      public VElement getMatchingTypeNodeVector(JDFNode testRoot)
      test whether a given node has the corect Types and Type Attribute
      Parameters:
      testRoot - the JDF or JMF to test
      Returns:
      VElement - the list of matching JDF nodes, null if none found
    • getMatchingDeviceCapVector

      public VElement getMatchingDeviceCapVector(JDFNode testRoot, boolean bLocal)
      return all deviceCap elements that correspond to testRoot
      Parameters:
      testRoot - the JDF or JMF to test
      bLocal -
      Returns:
      VElement - the list of matching devicecap nodes, null if none found
    • matchesType

      public boolean matchesType(JDFNode testRoot, boolean bLocal)
      test whether a given node has the corect Types and Type Attribute
      Parameters:
      testRoot - the JDF or JMF to test
      bLocal - if true, only check the root of this, else check children as well
      Returns:
      boolean - true if this DeviceCaps TypeExpression fits testRoot/@Type and testRoot/@Types
    • getExecutableJDF

      public VElement getExecutableJDF(JDFNode docRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel validationLevel)
      Gets of jdfRoot a vector of all executable nodes (jdf root or children nodes that this Device may execute)
      Parameters:
      docRoot - the node we test
      testlists - testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)
      Will be used in fitsValue method of the State class.
      validationLevel - validation level
      Returns:
      VElement - vector of executable JDFNodes
    • getBadJDFInfo

      public final XMLDoc getBadJDFInfo(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level)
      Composes a BugReport in XML form for the given JDFNode 'jdfRoot'. Gives a list of error messages for 'jdfRoot' and every child rejected Node.
      Returns null if there are no errors.
      Parameters:
      jdfRoot - the node to test
      testlists - testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)
      Will be used in fitsValue method of the State class.
      level - validation level
      Returns:
      XMLDoc - XMLDoc output of the error messages. If XMLDoc is null there are no errors.
    • getDescriptiveName

      public String getDescriptiveName()
      get the descriptivename - default to friendlyname if descriptivename is not set
      Overrides:
      getDescriptiveName in class JDFElement
      Returns:
      the attribute value
      See Also:
    • getRestApiBaseURL

      public String getRestApiBaseURL()
      Returns:
    • setRestApiBaseURL

      public void setRestApiBaseURL(String value)