JHPcte
Class PcteMutableAttributeValue

java.lang.Object
  |
  +--JHPcte.PcteAttributeValue
        |
        +--JHPcte.PcteMutableAttributeValue

public class PcteMutableAttributeValue
extends PcteAttributeValue

The mutable value of a Pcte attribute. The value type can be queried and the value can be accessed accordingly. If possible, values are converted according to the value type requested (e.g. int -> String)


Fields inherited from class JHPcte.PcteAttributeValue
PCTE_BOOLEAN_ATTRIBUTE, PCTE_ENUMERATION_ATTRIBUTE, PCTE_FLOAT_ATTRIBUTE, PCTE_INTEGER_ATTRIBUTE, PCTE_NATURAL_ATTRIBUTE, PCTE_STRING_ATTRIBUTE, PCTE_TIME_ATTRIBUTE, value, valueType
 
Constructor Summary
PcteMutableAttributeValue()
          default constructor
PcteMutableAttributeValue(boolean b)
          constructor for boolean attribute values
PcteMutableAttributeValue(float f)
          constructor for float attribute values
PcteMutableAttributeValue(int i)
          constructor for integer attribute values
PcteMutableAttributeValue(int i, int type)
          constructor for integer/natural/enumeration attribute values the valueType has to be set explicitly using the type parameter
PcteMutableAttributeValue(java.lang.String s)
          constructor for string attribute values
PcteMutableAttributeValue(java.lang.String s, int type)
          constructor for time and other attribute values value type has to be set explicitly using the type parameter
 
Method Summary
 void setBooleanValue(boolean b)
           
 void setEnumerationValue(int i)
           
 void setFloatValue(float f)
           
 void setIntValue(int i)
           
 void setNaturalValue(int i)
           
 void setStringValue(java.lang.String s)
           
 void setTimeValue(java.lang.String s)
           
 void setValueType(int type)
          set the attribute's value type (e.g.
 
Methods inherited from class JHPcte.PcteAttributeValue
getBooleanValue, getEnumerationValue, getFloatValue, getIntValue, getNaturalValue, getStringValue, getTimeValue, getValueType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PcteMutableAttributeValue

public PcteMutableAttributeValue()
default constructor

PcteMutableAttributeValue

public PcteMutableAttributeValue(boolean b)
constructor for boolean attribute values

PcteMutableAttributeValue

public PcteMutableAttributeValue(int i)
constructor for integer attribute values

PcteMutableAttributeValue

public PcteMutableAttributeValue(int i,
                                 int type)
constructor for integer/natural/enumeration attribute values the valueType has to be set explicitly using the type parameter

PcteMutableAttributeValue

public PcteMutableAttributeValue(float f)
constructor for float attribute values

PcteMutableAttributeValue

public PcteMutableAttributeValue(java.lang.String s)
constructor for string attribute values

PcteMutableAttributeValue

public PcteMutableAttributeValue(java.lang.String s,
                                 int type)
constructor for time and other attribute values value type has to be set explicitly using the type parameter
Method Detail

setBooleanValue

public void setBooleanValue(boolean b)

setIntValue

public void setIntValue(int i)

setEnumerationValue

public void setEnumerationValue(int i)

setNaturalValue

public void setNaturalValue(int i)

setFloatValue

public void setFloatValue(float f)

setStringValue

public void setStringValue(java.lang.String s)

setTimeValue

public void setTimeValue(java.lang.String s)

setValueType

public void setValueType(int type)
set the attribute's value type (e.g. PCTE_INTEGER_ATTRIBUTE)