Class JDFand

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

      • JDFand

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

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

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

      • 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 "and" function.
        Looks for evaluations which contain and. Tests the status of every evaluation found, until the result of a whole boolean expression will is determined.
        Tests if attribute map m has a key, specified by Evaluation/BasicPreflightTest/@Name and if m has such key, checks if its value fits 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 "and" 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 "and" function.
        Specified by:
        fitsJDF in class JDFTerm
        Parameters:
        jdf - the JDFNode to be checked iot find out if the device can accept it
        reportRoot - the report to generate; set to null if no report is requested
        Returns:
        boolean - true, if boolean "and" 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