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

    • JDFxor

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

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

      public JDFxor(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Constructor for JDFxor
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • 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:
      See Also:
    • getBooleanEvaluation

      public JDFBooleanEvaluation getBooleanEvaluation(int iSkip)
      Parameters:
      iSkip -
      Returns:
    • fitsMap

      public boolean fitsMap(JDFAttributeMap m)
      Evaluates two or more Term elements (and, or, xor, not, Evaluation, TestRef) to determine if, as a set, they evaluate to "true" when combined in a boolean "xor" function. ! For more than two arguments, exactly one Term must evaluate to "true" for the "xor" to evaluate to "true".
      Looks for Evaluations that "xor" consists of, and tests the status of every Evaluation, until the result of a whole boolean expression is determinated. Tests whether attribute map 'm' has a key specified by Evaluation/BasicPreflightTest/@Name. If 'm' has such key, checks if its value fits the testlists, specified for matching Evaluation (uses FitsValue(value))
      Specified by:
      fitsMap in class JDFTerm
      Parameters:
      m - key-value pair attribute map
      Returns:
      boolean - true, if boolean "xor" expression evaluates to "true"
    • fitsJDF

      public boolean fitsJDF(KElement jdf, KElement reportRoot)
      Evaluates two or more Term elements (and, or, xor, not, Evaluation, TestRef) to determine if, as a set, they evaluate to "true" when combined in a boolean "xor" function.
      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 "xor" expression evaluates to "true"
    • 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 - maximum value of missing elements to return
      Returns:
      VString vector with nMax missing elements