Class JDFIntegerState

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
All Implemented Interfaces:
Serializable, Cloneable, JDFBaseDataTypes, ICapabilityElement, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFIntegerState extends JDFAbstractState
See Also:
  • Constructor Details

    • JDFIntegerState

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

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

      public JDFIntegerState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      constructor for JDFIntegerState
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • Method Details

    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFAbstractState
      Returns:
    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFAbstractState
      Returns:
      the elementinfo
    • toString

      public String toString()
      toString
      Overrides:
      toString in class KElement
      Returns:
      String
      See Also:
    • setDefaultValue

      public void setDefaultValue(int value)
    • setDefaultValue

      public void setDefaultValue(JDFIntegerList value)
    • setCurrentValue

      public void setCurrentValue(JDFIntegerList value)
    • getDefaultValue

      public JDFIntegerList getDefaultValue()
    • setCurrentValue

      public void setCurrentValue(int value)
    • getCurrentValue

      public JDFIntegerList getCurrentValue()
    • setAllowedValueList

      public void setAllowedValueList(JDFIntegerRangeList value)
    • getAllowedValueList

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

      public void setPresentValueList(JDFIntegerRangeList value)
    • getPresentValueList

      public JDFIntegerRangeList getPresentValueList()
    • 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 String getUnitType()
    • setUnitType

      public void setUnitType(String value)
    • addValue

      public void addValue(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(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
    • getEvaluationType

      public JDFTerm.EnumTerm getEvaluationType()
      Description copied from interface: ICapabilityElement
      get the type of evaluation that is appropriate for this ICapabilityElement
      Specified by:
      getEvaluationType in interface ICapabilityElement
      Specified by:
      getEvaluationType in class JDFAbstractState
      Returns:
      EnumTerm the type of evaluation
      See Also: