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 JDFTest extends JDFNodeTerm
See Also:
  • Constructor Details

    • JDFTest

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

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

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

    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFElement
      Returns:
    • toString

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

      public boolean fitsMap(JDFAttributeMap m)
      Evaluates the boolean expression (child Term element) if it fits the attribute map 'm'
      Specified by:
      fitsMap in class JDFTerm
      Parameters:
      m - key-value pair attribute map
      Returns:
      boolean - true, if the boolean expression (child Term element) evaluates to true
    • fitsJDF

      public boolean fitsJDF(KElement jdf, KElement reportRoot)
      Evaluates the boolean expression (child Term element) if it fits the JDFNode 'jdf' a value of true corresponds to a failed test, i.e. the test describes INVALID states for the jdf
      Specified by:
      fitsJDF in class JDFTerm
      Parameters:
      jdf - JDFNode to test to know if the Device can accept it
      reportRoot - the report to generate. Set to null if no report is requested.
      Returns:
      boolean - true, if boolean expression (child Term element) evaluates to �true�
    • getTerm

      public JDFTerm getTerm()
      gets the term from a test
      Returns:
      JDFTerm the term that defines this test, null if there is no term
    • init

      public boolean init()
      Description copied from class: KElement
      Method init. Superclass of all inits
      Overrides:
      init in class JDFElement
      Returns:
      See Also:
    • getIDPrefix

      protected String getIDPrefix()
      getIDPrefix
      Overrides:
      getIDPrefix in class KElement
      Returns:
      the default ID prefix of non-overwritten JDF elements
    • 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 -
      bIgnorePrivate -
      nMax -
      Returns:
      See Also:
    • getMissingElements

      public VString getMissingElements(int nMax)
      Description copied from class: JDFElement
      get the missing elements as a vector

      default: getMissingElements(99999999)

      Overrides:
      getMissingElements in class JDFElement
      Parameters:
      nMax -
      Returns:
      See Also:
      • org.cip4.jdflib.core.KElement#getMissingElements(int)
    • fitsContext

      public boolean fitsContext(KElement testElement)
      check whether the boolean logic defined by a Test and a test's subelements makes sense in the context of the tested element jdf
      Overrides:
      fitsContext in class JDFNodeTerm
      Parameters:
      testElement - the KElement to check
      Returns:
      boolean
    • getContext

      public String getContext()
      get attribute Context of this Test element
      Returns:
      String - the value of the Context attribute of this test
    • setContext

      public void setContext(String context)
      set attribute Context of this Test element
      Parameters:
      context - the value of the Context attribute of this test