public class IstiNamedValue extends java.lang.Object implements IstiNamedValueInterface
Modifier and Type | Field and Description |
---|---|
static boolean |
lenient
lenient flag
|
sepCh
Constructor and Description |
---|
IstiNamedValue(java.lang.String str)
Creates a value.
|
IstiNamedValue(java.lang.String valueName,
java.lang.Object defaultValueObj)
Creates a value.
|
IstiNamedValue(java.lang.String valueName,
java.lang.Object defaultValueObj,
java.lang.Object valueObj)
Creates a value.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
checkValue(java.lang.Object valueObj)
Checks the value object.
|
java.lang.Object |
clone()
Creates and returns a clone of this object.
|
protected static java.lang.String |
determineStringValue(java.lang.Object value)
Returns a String object representing the value.
|
java.lang.Object |
getDefaultValue()
Returns the default value object for the value.
|
java.lang.String |
getName()
Returns the name of the value.
|
java.lang.Object |
getValue()
Returns the value object for the value.
|
boolean |
isDefaultValue()
Determines if the current value is the same as the default value.
|
boolean |
setValue(java.lang.Object valueObj)
Sets the value object for the value.
|
boolean |
setValueString(java.lang.String str)
Sets the value for the value.
|
static java.lang.Object |
setValueString(java.lang.String str,
java.lang.Object defValObj)
Interprets the given string and enters it as the value object for
the property item.
|
java.lang.String |
stringValue()
Returns a String object representing the value.
|
java.lang.String |
toString()
Returns a String object representing this object.
|
public IstiNamedValue(java.lang.String str)
str
- the string representation for this object.public IstiNamedValue(java.lang.String valueName, java.lang.Object defaultValueObj)
valueName
- the value name.defaultValueObj
- the default value object.public IstiNamedValue(java.lang.String valueName, java.lang.Object defaultValueObj, java.lang.Object valueObj)
valueName
- the value name.defaultValueObj
- the default value object.valueObj
- the value object or null for the default.public java.lang.Object clone()
clone
in interface IstiNamedValueInterface
clone
in class java.lang.Object
public java.lang.Object getDefaultValue()
getDefaultValue
in interface IstiNamedValueInterface
public java.lang.String getName()
getName
in interface IstiNamedValueInterface
public java.lang.Object getValue()
getValue
in interface IstiNamedValueInterface
public boolean isDefaultValue()
isDefaultValue
in interface IstiNamedValueInterface
public boolean setValue(java.lang.Object valueObj)
setValue
in interface IstiNamedValueInterface
valueObj
- the value object.public boolean setValueString(java.lang.String str)
setValueString
in interface IstiNamedValueInterface
str
- the string value to interpret.public static java.lang.Object setValueString(java.lang.String str, java.lang.Object defValObj)
str
- the string value to interpret.defValObj
- the default value object to use for type checking
(this parameter allows for multiple values and types to be dealt
with).public java.lang.String stringValue()
stringValue
in interface IstiNamedValueInterface
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Object checkValue(java.lang.Object valueObj)
valueObj
- the value object.protected static java.lang.String determineStringValue(java.lang.Object value)
value
- the value.