Class JDFIntegerState

    • Constructor Detail

      • JDFIntegerState

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

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

        public JDFIntegerState​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                               java.lang.String myNamespaceURI,
                               java.lang.String qualifiedName,
                               java.lang.String myLocalName)
        constructor for JDFIntegerState
        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()
      • setDefaultValue

        public void setDefaultValue​(int value)
      • setDefaultValue

        public void setDefaultValue​(JDFIntegerList value)
      • setCurrentValue

        public void setCurrentValue​(JDFIntegerList value)
      • setCurrentValue

        public void setCurrentValue​(int value)
      • getAllowedValueList

        public JDFIntegerRangeList getAllowedValueList()
        get the allowedValueList
        Returns:
        the allowedValuelist, null if no list exists
      • setAllowedValueMax

        public void setAllowedValueMax​(int value)
      • getAllowedValueMax

        public int getAllowedValueMax()
      • setPresentValueMax

        public void setPresentValueMax​(int value)
      • getPresentValueMax

        public int getPresentValueMax()
      • setAllowedValueMin

        public void setAllowedValueMin​(int value)
      • getAllowedValueMin

        public int getAllowedValueMin()
      • setPresentValueMin

        public void setPresentValueMin​(int value)
      • getPresentValueMin

        public int getPresentValueMin()
      • setAllowedValueMod

        public void setAllowedValueMod​(JDFXYPair value)
      • getAllowedValueMod

        public JDFXYPair getAllowedValueMod()
      • setPresentValueMod

        public void setPresentValueMod​(JDFXYPair value)
      • getPresentValueMod

        public JDFXYPair getPresentValueMod()
      • getUnitType

        public java.lang.String getUnitType()
      • setUnitType

        public void setUnitType​(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 given test lists
        Specified by:
        fitsValue in class JDFAbstractState
        Parameters:
        value - value to test
        testlists - test lists the value has to match. In this State the test lists are ValueList AND ValueMod.
        Choose one of two values: FitsValue_Allowed or FitsValue_Present. Defaults to Allowed.
        Returns:
        boolean - true, if value matches the testlists or if AllowedValueList and AllowedValueMod 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