Class JDFNodeTerm

  • 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:
    JDFand, JDFnot, JDFor, JDFTest, JDFxor

    public abstract class JDFNodeTerm
    extends JDFTerm
    class to collect getters and setters for term intermediate nodes
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFNodeTerm

        public JDFNodeTerm​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                           java.lang.String qualifiedName)
                    throws org.w3c.dom.DOMException
        Throws:
        org.w3c.dom.DOMException
      • JDFNodeTerm

        public JDFNodeTerm​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                           java.lang.String myNamespaceURI,
                           java.lang.String qualifiedName)
                    throws org.w3c.dom.DOMException
        Throws:
        org.w3c.dom.DOMException
      • JDFNodeTerm

        public JDFNodeTerm​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                           java.lang.String myNamespaceURI,
                           java.lang.String qualifiedName,
                           java.lang.String myLocalName)
                    throws org.w3c.dom.DOMException
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • getTerm

        public JDFTerm getTerm​(JDFTerm.EnumTerm term,
                               int iSkip)
        get the iSkip'th Term of type term, do not create it if it does not exist
        Parameters:
        term - type of term to append
        iSkip - number of terms to skip, 0 is the first
        Returns:
        JDFTerm - the requested term, null if none exists
      • getCreateTerm

        public JDFTerm getCreateTerm​(JDFTerm.EnumTerm term,
                                     int iSkip)
        get the iSkip'th Term of type term, create it if it does not exist
        Parameters:
        term - type of term to append
        iSkip - number of terms to skip, 0 is the first
        Returns:
        JDFTerm - the requested term
      • appendTerm

        public JDFTerm appendTerm​(JDFTerm.EnumTerm term)
        append a Term as defined by term
        Parameters:
        term - type of term to append
        Returns:
        JDFTerm the appended term
      • fitsContext

        public boolean fitsContext​(KElement testElement)
        check whether the boolean logic defined by a Test and a test's subelements make sense in the context of the tested element jdf
        Specified by:
        fitsContext in class JDFTerm
        Parameters:
        testElement - the KElement to check
        Returns:
        boolean
      • getTermVector

        @Deprecated
        public VElement getTermVector()
        Deprecated.
        use getTermVector(null)
        gets a vector of all terms
        Returns:
      • getTermVector

        public VElement getTermVector​(JDFTerm.EnumTerm term)
        gets a vector of all terms
        Returns:
        VElement - vector of JDFTerm
      • getTerm

        @Deprecated
        public JDFTerm getTerm​(int iSkip)
        Deprecated.
        gets the iSkip'th term
        Parameters:
        iSkip - the number of terms tos skip
        Returns:
        JDFTerm - the iSkip'th Term
      • getInvalidTerms

        protected VString getInvalidTerms​(int iMax)
      • getMissingTerms

        protected VString getMissingTerms​(int iMin)