java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.cip4.jdflib.core.KElement
org.cip4.jdflib.core.JDFElement
org.cip4.jdflib.resource.devicecapability.JDFTerm
All Implemented Interfaces:
Serializable, Cloneable, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
JDFEvaluation, JDFNodeTerm, JDFTestRef

public abstract class JDFTerm extends JDFElement
See Also:
  • Constructor Details

    • JDFTerm

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

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

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

    • fitsJDF

      public abstract boolean fitsJDF(KElement jdf, KElement reportRoot)
      Evaluates the boolean expression (child Term element): checks whether it fits jdf
      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
    • fitsContext

      public abstract boolean fitsContext(KElement jdf)
      checks the xpath whether this term applies
      Parameters:
      jdf - the KElement to check
      Returns:
      boolean
    • fitsMap

      public abstract boolean fitsMap(JDFAttributeMap m)
      Tests whether this Term is compatible with the attribute map m (and, or, xor, not, Evaluation, TestRef).
      To determine the state of Term tests Evaluations thatdoes not consists of, this method checks if attribute map m has a key. specified by Evaluation/BasicPreflightTest/@Name If m has such key, it checks whether the value of m# fits the testlists specified for matching Evaluation (uses FitsValue(value))
      Parameters:
      m - key-value pair attribute map
      Returns:
      boolean - true, if boolean �not� expression evaluates to �true�