public class StringValueObject extends ValueObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
defaultTTL, locale, traceDefault, valueForTrueANYTYPE, 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 |
|---|
StringValueObject()
The default constructor.
|
StringValueObject(java.util.Locale locale)
The default constructor.
|
StringValueObject(java.lang.String newValue)
Creates a value object with the current integer value.
|
StringValueObject(java.lang.String newValue,
java.awt.Color newColor)
Creates a value object with the current double value.
|
StringValueObject(java.lang.String newValue,
java.util.Locale locale)
Creates a value object with the current integer value.
|
| Modifier and Type | Method and Description |
|---|---|
ValueObjectInterface |
convertToLowestPrecisionNumber()
This will convert the StringValueObject to the lowest precision type, either a
LongValueObject or a DoubleValueObject.
|
ValueObjectInterface |
copy()
Returns a deep copy of the value object.
|
boolean |
equals(java.lang.Object theObject)
Returns whether or not the String values are equivalent.
|
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 float.
|
float |
getFloatValue()
Returns the current value represented as an float.
|
int |
getIntValue()
Returns the current value represented as an integer.
|
java.util.Locale |
getLocale()
This method returns the Locale that this object was created in.
|
long |
getLongValue()
Returns the current value represented as a long.
|
double |
getNumericValue()
Returns the double value, but will throw an exception if the object isn't convertible.
|
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, decrementTTL, escapeJSON, getAlwaysSend, getBinaryValue, getColor, getDate, 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, toStringpublic static final java.lang.String cvsRev
public StringValueObject()
public StringValueObject(java.util.Locale locale)
public StringValueObject(java.lang.String newValue)
newValue - The value storedpublic StringValueObject(java.lang.String newValue,
java.awt.Color newColor)
newValue - the value storednewColor - the color assocaiated with the newValue.public StringValueObject(java.lang.String newValue,
java.util.Locale locale)
newValue - The value storedpublic ValueObjectInterface convertToLowestPrecisionNumber()
convertToLowestPrecisionNumber in interface ValueObjectInterfaceconvertToLowestPrecisionNumber in class ValueObjectvoi - the StringValueObject to convertStringValueObjectpublic ValueObjectInterface copy()
public boolean equals(java.lang.Object theObject)
equals in interface ValueObjectInterfaceequals in class ValueObjectpublic boolean getBoolValue()
public byte getByteValue()
public double getDoubleValue()
ValueObjectInterface.getNumericValue()public float getFloatValue()
public int getIntValue()
public java.util.Locale getLocale()
getLocale in interface ValueObjectInterfacegetLocale in class ValueObjectpublic long getLongValue()
public double getNumericValue()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionValueObjectInterface.getDoubleValue()public java.lang.Object getObjectValue()
public short getShortValue()
public java.lang.String getStringValue()
public int hashCode()
hashCode in class ValueObjectCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.