public class GenericValueObject extends ValueObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
defaultTTL, locale, traceDefault, valueForTrue
ANYTYPE, ARRAYTYPE, BINARYTYPE, BOOLEANTYPE, BYTETYPE, CHARTYPE, DISPLAYVALUE, DOUBLETYPE, FLOATTYPE, GROUP_NAME, INITIALVALUE, INTTYPE, LOG_MESSAGE, LONGTYPE, NAME, OBJECTTYPE, ORDER, PASSWORD_DIGEST, PROPERTYTYPE, QUALITY_BAD, QUALITY_COMM_FAILURE, QUALITY_DEVICE_FAILURE, QUALITY_EGU_EXCEEDED, QUALITY_EVALUATION_EXPIRED, QUALITY_GOOD, QUALITY_IMPOSSIBLE, QUALITY_INITIAL, QUALITY_LAST_USABLE, QUALITY_OUT_OF_SERVICE, QUALITY_PROPERTYONLY, QUALITY_REMOTE_PROXY_INIT, QUALITY_SIMULATED, QUALITY_SOURCE_REMOVED, QUALITY_TRANSITIONAL, QUALITY_UNKNOWN, QUALITY_WARNING, QUALITY_WORST, QUALITY_WRITE_IN_PROGRESS, REQUESTCURRENTVALUE, REQUESTHISTORICAL, SHORTTYPE, STRINGTYPE, TRACE, TWODTYPE, UNSIGNEDBYTETYPE, UNSIGNEDINTTYPE, UNSIGNEDLONGTYPE, UNSIGNEDSHORTTYPE, USER_NAME
Constructor and Description |
---|
GenericValueObject()
The default constructor.
|
GenericValueObject(boolean newValue)
Creates a value object with the current boolean value.
|
GenericValueObject(boolean newValue,
java.awt.Color newColor)
Creates a value object with the current value a boolean
and the color associated with that value newColor
|
GenericValueObject(byte newValue)
Creates a value object with the current byte value.
|
GenericValueObject(byte newValue,
java.awt.Color newColor)
Creates a value object with the current byte value
and the color associated with that value (newColor).
|
GenericValueObject(char newValue)
Creates a value object with the current char value.
|
GenericValueObject(char newValue,
java.awt.Color newColor)
Creates a value object with the current char value
and the color associated with that value (newColor).
|
GenericValueObject(double newValue)
Creates a value object with the current double value.
|
GenericValueObject(double newValue,
java.awt.Color newColor)
Creates a value object with the current double value
and the color associated with that value (newColor).
|
GenericValueObject(float newValue)
Creates a value object with the current float value.
|
GenericValueObject(float newValue,
java.awt.Color newColor)
Creates a value object with the current float value
and the color associated with that value (newColor).
|
GenericValueObject(int newValue)
Creates a value object with the current integer value.
|
GenericValueObject(int newValue,
java.awt.Color newColor)
Creates a value object with the current integer value.
|
GenericValueObject(long newValue)
Creates a value object with the current long value.
|
GenericValueObject(long newValue,
java.awt.Color newColor)
Creates a value object with the current long value
and the color associated with that value (newColor).
|
GenericValueObject(java.lang.Object newValue)
Creates a value object with the current value a Serializable Object.
|
GenericValueObject(java.io.Serializable newValue)
Creates a value object with the current value a Serializable Object.
|
GenericValueObject(java.io.Serializable newValue,
boolean copy)
Creates a value object with the current value a Serializable Object.
|
GenericValueObject(java.io.Serializable newValue,
java.awt.Color newColor)
Creates a value object with the current value a Serializable Object
and the color associated with that value.
|
GenericValueObject(short newValue)
Creates a value object with the current short value.
|
GenericValueObject(short newValue,
java.awt.Color newColor)
Creates a value object with the current short value
and the color associated with that value (newColor).
|
GenericValueObject(java.lang.String newValue)
Creates a value object with the current String value.
|
GenericValueObject(java.lang.String newValue,
java.awt.Color newColor)
Creates a value object with the current String value
and the color associated with that value.
|
Modifier and Type | Method and Description |
---|---|
ValueObjectInterface |
copy()
Returns a deep copy of the value object if possible.
|
java.io.Serializable |
copyObject(java.io.Serializable theObject)
make a copy of any serializable object
|
boolean |
equals(java.lang.Object theObject)
Compare the string values
|
boolean |
getBoolValue()
Returns the current value represented as a boolean.
|
byte |
getByteValue()
Returns the current value represented as an byte.
|
double |
getDoubleValue()
Returns the current value represented as a double.
|
float |
getFloatValue()
Returns the current value represented as an float.
|
int |
getIntValue()
Returns the current value represented as an integer.
|
long |
getLongValue()
Returns the current value represented as a long.
|
double |
getNumericValue()
Returns the current value represented as a double.
|
java.lang.Object |
getObjectValue()
Returns the current value represented as an Object.
|
short |
getShortValue()
Returns the current value represented as a short.
|
java.lang.String |
getStringValue()
Returns the current value represented as an String.
|
int |
hashCode() |
acquireLatestPropertiesFrom, acquirePropertiesFrom, attributeNames, compareTo, convertToLowestPrecisionNumber, decrementTTL, escapeJSON, getAlwaysSend, getBinaryValue, getColor, getDate, getLocale, getLowestPrecisionValueObject, getProperties, getProperty, getQuality, getQualityString, getTime, getTimeMillis, getTTL, getType, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, replaces, setAlwaysSend, setColor, setDate, setLocale, setProperty, setQuality, setTimeMillis, setTTL, setType, setValueForTrue, shouldTrace, toJSON, toJSON, toJSON, toString
public static final java.lang.String cvsRev
public GenericValueObject()
public GenericValueObject(boolean newValue)
newValue
- The value storedpublic GenericValueObject(boolean newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(byte newValue)
newValue
- The value storedpublic GenericValueObject(byte newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(char newValue)
newValue
- The value storedpublic GenericValueObject(char newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(double newValue)
newValue
- The value storedpublic GenericValueObject(double newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(float newValue)
newValue
- The value storedpublic GenericValueObject(float newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(int newValue)
newValue
- The value storedpublic GenericValueObject(int newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(long newValue)
newValue
- The value storedpublic GenericValueObject(long newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(java.lang.Object newValue)
newValue
- The value storedpublic GenericValueObject(java.io.Serializable newValue)
newValue
- The value storedpublic GenericValueObject(java.io.Serializable newValue, boolean copy)
newValue
- The value storedpublic GenericValueObject(java.io.Serializable newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(short newValue)
newValue
- The value storedpublic GenericValueObject(short newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public GenericValueObject(java.lang.String newValue)
newValue
- The value storedpublic GenericValueObject(java.lang.String newValue, java.awt.Color newColor)
newValue
- the value storednewColor
- the color associated with the newValue.public ValueObjectInterface copy()
public java.io.Serializable copyObject(java.io.Serializable theObject) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public boolean equals(java.lang.Object theObject)
ValueObject
equals
in interface ValueObjectInterface
equals
in class ValueObject
public boolean getBoolValue()
public byte getByteValue()
public double getDoubleValue()
ValueObjectInterface.getNumericValue()
public float getFloatValue()
public int getIntValue()
public long getLongValue()
public double getNumericValue() throws java.lang.NumberFormatException
java.lang.NumberFormatException
ValueObjectInterface.getDoubleValue()
public java.lang.Object getObjectValue()
public short getShortValue()
public java.lang.String getStringValue()
public int hashCode()
hashCode
in class ValueObject
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.