com.isti.util
Interface IstiNamedValueInterface

All Known Subinterfaces:
PropItemInterface
All Known Implementing Classes:
CfgPropItem, IstiNamedValue, PropItem

public interface IstiNamedValueInterface

IstiNamedValueInterface defines a named value object interface.


Field Summary
static char sepCh
          The separator character
 
Method Summary
 java.lang.Object clone()
          Creates and returns a clone of this object.
 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.
 java.lang.String stringValue()
          Returns a String object representing the value.
 

Field Detail

sepCh

static final char sepCh
The separator character

See Also:
Constant Field Values
Method Detail

clone

java.lang.Object clone()
Creates and returns a clone of this object.

Returns:
a clone of the this object.

getDefaultValue

java.lang.Object getDefaultValue()
Returns the default value object for the value.

Returns:
the default value object for the value.

getName

java.lang.String getName()
Returns the name of the value.

Returns:
the name of the value.

getValue

java.lang.Object getValue()
Returns the value object for the value.

Returns:
the value object for the value.

isDefaultValue

boolean isDefaultValue()
Determines if the current value is the same as the default value.

Returns:
true if the current value is the same as the default value.

setValue

boolean setValue(java.lang.Object valueObj)
Sets the value object for the value.

Parameters:
valueObj - the value object.
Returns:
true if successful, false if given object's type does not match the item's default-value object's type.

setValueString

boolean setValueString(java.lang.String str)
Sets the value for the value. The string is converted to an object of the same type as the given default value object for named value.

Parameters:
str - the string value to interpret.
Returns:
true if successful, false if the string could not be converted to the proper type.

stringValue

java.lang.String stringValue()
Returns a String object representing the value.

Returns:
the String value.