|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.IstiNamedValue
public class IstiNamedValue
Class IstiNamedValue defines a named value object.
Field Summary |
---|
Fields inherited from interface com.isti.util.IstiNamedValueInterface |
---|
sepCh |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |