Class JDFBooleanState

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

    • JDFBooleanState

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

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

      public JDFBooleanState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Constructor for JDFBooleanState
      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:
    • 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 Vector getAllowedValueList()
      get the list of allowed values
      Returns:
      Vector, null if no allowed values found
    • setAllowedValueList

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

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

      public void setPresentValueList(Vector value)
      set attribute PresentValueList
      Parameters:
      value -
    • fitsValue

      public final boolean fitsValue(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(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.
    • 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: