|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Number
com.davisor.data.SimpleNumberValue
com.davisor.data.FloatData
com.davisor.data.EnumData
An EnumData object represents enumerated data value. EnumData
supports integer and fractional number values. In particular,
EnumData inherits FloatData instead of for example IntegerData to allow manipulation and interpolation of fraction
values. Fraction values are mapped to integer enumerated values by
first trucating the fraction values to corresponding integer
values, and then mapping the results to enumerated values.
EnumType,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.data.SimpleNumberValue |
M_type, M_value |
| Constructor Summary | |
EnumData(EnumData ed)
Shallow copy constructor. |
|
EnumData(EnumData ed,
boolean deep)
Deep or shallow copy constructor. |
|
EnumData(EnumType type)
Creates a new enumerated data object with the given enumeration type and default value (0). |
|
EnumData(EnumType type,
float value)
Creates a new enumerated data object with the given enumeration type and value. |
|
EnumData(EnumType type,
int value)
Creates a new enumerated data object with the given enumeration type and value. |
|
EnumData(EnumType type,
java.lang.Number value)
Creates a new enumerated data object with the given enumeration type and value. |
|
EnumData(EnumType type,
java.lang.String stringValue,
java.text.ParsePosition status)
Creates a enum data value from a string value. |
|
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
| Methods inherited from class com.davisor.data.FloatData |
abs, getFormat, negate, setValue, setValue, setValue, setValue, setValue, toStatement |
| Methods inherited from class com.davisor.data.SimpleNumberValue |
add, byteValue, ceil, compareTo, deinterpolate, div, doubleValue, equals, floatValue, floor, getFormat, getType, hashCode, interpolate, intValue, isNull, longValue, max, min, mul, numberValue, setValue, setValue, setValue, shortValue, sub, toString, toXML, unit |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EnumData(EnumData ed)
public EnumData(EnumData ed,
boolean deep)
ed - source data (may be null)deep - determines if the copying is deep or shallowSimpleNumberValue.getType(),
Type.dup()public EnumData(EnumType type)
type - enumerated type that provides the mapping between
enumeration indexes and values.
public EnumData(EnumType type,
java.lang.Number value)
type - enumerated type that provides mapping between
enumeration indexes and values.
public EnumData(EnumType type,
float value)
type - enumerated type that provides mapping between
enumeration indexes and values.
public EnumData(EnumType type,
int value)
type - enumerated type that provides mapping between
enumeration indexes and values.
public EnumData(EnumType type,
java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
stringValue - string value to be parsedstatus - parse status (may be null)
InvalidDataException - if string value could not be parserFloatData.setValue(String,ParsePosition)| Method Detail |
public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class FloatData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||