Class JDFNumberState

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 JDFNumberState extends JDFAbstractState
See Also:
  • Constructor Details

    • JDFNumberState

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

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

      public JDFNumberState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      constructor for JDFNumberState
      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(double value)
    • setDefaultValue

      public void setDefaultValue(JDFNumberList value)
    • setCurrentValue

      public void setCurrentValue(JDFNumberList value)
    • getDefaultValue

      public JDFNumberList getDefaultValue()
    • setCurrentValue

      public void setCurrentValue(double value)
    • getCurrentValue

      public JDFNumberList getCurrentValue()
    • setAllowedValueList

      public void setAllowedValueList(JDFNumberRangeList value)
    • getAllowedValueList

      public JDFNumberRangeList getAllowedValueList()
    • setPresentValueList

      public void setPresentValueList(JDFNumberRangeList value)
    • getPresentValueList

      public JDFNumberRangeList getPresentValueList()
    • setAllowedValueMax

      public void setAllowedValueMax(double value)
    • getAllowedValueMax

      public double getAllowedValueMax()
    • setPresentValueMax

      public void setPresentValueMax(double value)
    • getPresentValueMax

      public double getPresentValueMax()
    • setAllowedValueMin

      public void setAllowedValueMin(double value)
    • getAllowedValueMin

      public double getAllowedValueMin()
    • setPresentValueMin

      public void setPresentValueMin(double value)
    • getPresentValueMin

      public double 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 Allowed/Present test lists 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 AND ValueMod.
      Choose one of two values: FitsValue_Allowed or FitsValue_Present. (Defaults to Allowed)
      Returns:
      boolean - true, if value matches 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: