Class JDFnot

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

      • JDFnot

        public JDFnot​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                      java.lang.String qualifiedName)
        Constructor for JDFnot
        Parameters:
        myOwnerDocument -
        qualifiedName -
      • JDFnot

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

        public JDFnot​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                      java.lang.String myNamespaceURI,
                      java.lang.String qualifiedName,
                      java.lang.String myLocalName)
        Constructor for JDFnot
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
    • Method Detail

      • toString

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

        public boolean fitsMap​(JDFAttributeMap m)
        Inverts the boolean state of a Term element (and, or, xor, not, Evaluation, TestRef).
        To determine the state of Term tests Evaluations that "not" consists of, it checks whether attribute map 'm' has a key, specified by Evaluation/BasicPreflightTest/@Name. If 'm' has such key, it checks whether its value fits the testlists specified for matching the Evaluation (uses FitsValue(value))
        Specified by:
        fitsMap in class JDFTerm
        Parameters:
        m - key-value pair attribute map
        Returns:
        boolean - true, if boolean "not" expression evaluates to "true"
      • fitsJDF

        public boolean fitsJDF​(KElement jdf,
                               KElement reportRoot)
        Inverts the boolean state of a Term child element (and, or, xor, not, Evaluation, TestRef)
        Specified by:
        fitsJDF in class JDFTerm
        Parameters:
        jdf - JDFNode we 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 "not" expression evaluates to "true"
      • 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 - validation level
        bIgnorePrivate - if true, do not worry about elements in other namespaces
        nMax - maximum size of the returned vector
        Returns:
        VString - a vector of invalid element names
      • 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