Class JDFBooleanState

    • Constructor Detail

      • JDFBooleanState

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

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

        public JDFBooleanState​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                               java.lang.String myNamespaceURI,
                               java.lang.String qualifiedName,
                               java.lang.String myLocalName)
        Constructor for JDFBooleanState
        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​(boolean value)
        set attribute CurrentValue
        Parameters:
        value - value to set the attribute to
      • getCurrentValue

        public boolean getCurrentValue()
        get attribute CurrentValue
        Returns:
        the value of the attribute
      • setDefaultValue

        public void setDefaultValue​(boolean value)
        set attribute DefaultValue
        Parameters:
        value - the value to set the attribute to
      • getDefaultValue

        public boolean getDefaultValue()
        get attribute DefaultValue
        Returns:
        the value of the attribute
      • getAllowedValueList

        public java.util.Vector getAllowedValueList()
        get the list of allowed values
        Returns:
        Vector, null if no allowed values found
      • setAllowedValueList

        public void setAllowedValueList​(java.util.Vector value)
        set attribute AllowedValueList
        Parameters:
        value - value to set the attribute to
      • getPresentValueList

        public java.util.Vector getPresentValueList()
        get attribute PresentValueList
        Returns:
        the value of the attribute
      • setPresentValueList

        public void setPresentValueList​(java.util.Vector value)
        set attribute PresentValueList
        Parameters:
        value -
      • fitsValue

        public final boolean fitsValue​(java.lang.String valueStr,
                                       JDFBaseDataTypes.EnumFitsValue testlists)
        fitsValue - tests, if the defined value matches the Allowed test lists or Present test lists, specified for this State
        Specified by:
        fitsValue in class JDFAbstractState
        Parameters:
        value - value to test
        testlists - test lists, that the value has to match. In this State there is only one test list - ValueList.
        Choose one of two values: FitsValue_Allowed or FitsValue_Present. Defaults to Allowed.
        Returns:
        boolean - true, if value matches testlists or if AllowedValueList is not specified
      • 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.