Class JDFNameState

    • Constructor Detail

      • JDFNameState

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

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

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

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • setCurrentValue

        public void setCurrentValue​(java.lang.String value)
      • setCurrentValue

        public void setCurrentValue​(VString value)
      • getCurrentValue

        public VString getCurrentValue()
      • setDefaultValue

        public void setDefaultValue​(java.lang.String value)
      • setDefaultValue

        public void setDefaultValue​(VString value)
      • getDefaultValue

        public VString getDefaultValue()
      • getAllowedValueList

        public VString getAllowedValueList()
      • setAllowedValueList

        public void setAllowedValueList​(VString vs)
      • getPresentValueList

        public VString getPresentValueList()
      • setPresentValueList

        public void setPresentValueList​(VString vs)
      • setAllowedRegExp

        public void setAllowedRegExp​(java.lang.String value)
      • setPresentRegExp

        public void setPresentRegExp​(java.lang.String value)
      • addValue

        public void addValue​(java.lang.String value,
                             JDFBaseDataTypes.EnumFitsValue testlists)
        Description copied from class: JDFAbstractState
        add a value to the list of values defined by testlists
        Specified by:
        addValue in class JDFAbstractState
        Parameters:
        value - value to test
        testlists - switches between Allowed test lists and Present test lists. Has two values: Allowed and Present.
      • fitsValue

        public boolean fitsValue​(java.lang.String value,
                                 JDFBaseDataTypes.EnumFitsValue testlists)
        fitsValue - checks whether value matches the testlists specified for this State
        Specified by:
        fitsValue in class JDFAbstractState
        Parameters:
        value - value to test
        testlists - the test lists the value has to match. In this State the test lists are ValueList, RegExp.
        Choose one of two values: FitsValue_Allowed or FitsValue_Present. (Defaults to Allowed)
        Returns:
        boolean - true, if the value matches all test lists or if Allowed test lists are not specified
      • getInvalidAttributes

        public VString getInvalidAttributes​(JDFElement.EnumValidationLevel level,
                                            boolean bIgnorePrivate,
                                            int nMax)
        Description copied from class: JDFElement
        get invalid attributes
        Overrides:
        getInvalidAttributes in class JDFElement
        Parameters:
        level - validation level
        bIgnorePrivate - if true, do not worry about attributes in other namespaces
        nMax - maximum size of the returned vector
        Returns:
        VString - a vector of invalid attribute names