Class JDFTerm

  • 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
    Direct Known Subclasses:
    JDFEvaluation, JDFNodeTerm, JDFTestRef

    public abstract class JDFTerm
    extends JDFElement
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFTerm

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

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

        public JDFTerm​(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 JDFTerm
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • 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�