Class JDFDevice

  • 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 JDFDevice
    extends JDFAutoDevice
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFDevice

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

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

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

      • toString

        public java.lang.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:
        KElement.toString()
      • 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.
      • getRestApiBaseURL

        public java.lang.String getRestApiBaseURL()
        Returns:
      • setRestApiBaseURL

        public void setRestApiBaseURL​(java.lang.String value)