|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.conf.Value
A configuration value.
Constructor Summary | |
Value()
Default constructor. |
|
Value(String prop)
Constructor. |
Method Summary | |
void |
addAlias(String key,
String value)
Add an alias to the beginning of the alias list. |
String |
alias(String str)
Alias the given setting. |
Object |
clone()
|
boolean |
equals(Object other)
|
String[] |
getAliases()
Aliases for the value in the form key1, value1, key2, value2, ... |
String |
getDefault()
The default value for the property. |
protected abstract String |
getInternalString()
Return the internal string form of this value. |
ValueListener |
getListener()
Listener for value changes. |
String |
getProperty()
The property name that will be used when setting or getting this value in a Properties object. |
String |
getString()
Return a stringified version of this value. |
abstract Class |
getValueType()
Returns the type of the property that this Value represents. |
int |
hashCode()
|
boolean |
isAliasListComprehensive()
Whether or not the alias list defines all possible settings for this value. |
void |
setAliases(String[] aliases)
Aliases for the value in the form key1, value1, key2, value2, ... |
void |
setAliasListComprehensive(boolean aliasListIsComprehensive)
Whether or not the alias list defines all possible settings for this value. |
void |
setDefault(String def)
The default value for the property. |
protected abstract void |
setInternalString(String str)
Set this value from the given string. |
void |
setListener(ValueListener listen)
Listener for value changes. |
void |
setProperty(String prop)
The property name that will be used when setting or getting this value in a Properties object. |
void |
setString(String val)
Set this value from the given string. |
String |
unalias(String str)
Unalias the given setting. |
void |
valueChanged()
Subclasses should call this method when their inernal value changes. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Value(String prop)
setProperty(java.lang.String)
public Value()
Method Detail |
public String getProperty()
Properties
object.public void setProperty(String prop)
Properties
object.public String[] getAliases()
public void setAliases(String[] aliases)
public void addAlias(String key, String value)
public boolean isAliasListComprehensive()
public void setAliasListComprehensive(boolean aliasListIsComprehensive)
public String alias(String str)
public String unalias(String str)
public String getDefault()
public void setDefault(String def)
public String getString()
public void setString(String val)
public abstract Class getValueType()
protected abstract String getInternalString()
protected abstract void setInternalString(String str)
public ValueListener getListener()
public void setListener(ValueListener listen)
public void valueChanged()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public Object clone()
clone
in class Object
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |