|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Configuration.Entry
This interface represents one entry (option) of a configuration.
| Method Summary | |
|---|---|
boolean |
getBoolean()
Returns the boolean value of this configuration entry. |
Configuration |
getConfiguration()
Returns the configuration that this entry belongs to. |
java.lang.String |
getDescription()
Returns the description of this configuration entry |
java.lang.String |
getDoc()
Returns a string representing this configuration entry. |
java.lang.Enum |
getEnum()
Returns the current string value of this configuration entry as an enumeration constant. |
java.util.EnumSet |
getEnumSet()
|
java.io.File |
getFile()
Always returns file instance describing an absolute path. |
java.util.List<java.io.File> |
getFilelist()
|
int |
getInt()
Returns the integer value of this configuration entry. |
java.lang.String |
getKey()
Returns the key of this configuration entry |
long |
getLong()
Returns the long value of this configuration entry. |
java.lang.String |
getPropertyFileComment()
|
java.lang.Class |
getType()
Returns the type of this configuration entry. |
java.lang.String |
getValue()
Returns the value if it is set (non null) or the default value otherwise. |
boolean |
isList()
|
boolean |
isSet()
Returns true if this configuration has a value other than the default value. |
void |
setBoolean(boolean enabled)
Sets the string value of this entry to the given boolean value. |
void |
setDescription(java.lang.String description)
Sets the description of this configuration entry. |
void |
setEnum(java.lang.Enum theEnum)
Sets the current string value to the given enumeration constant. |
void |
setEnumSet(java.util.EnumSet enumSet)
|
void |
setFile(java.io.File file)
Sets the current string value to the given file. |
void |
setInt(int port)
Sets the value to the given integer value. |
void |
setLong(long value)
Sets the value to the given long value. |
void |
setValue(java.lang.String string)
Sets the value for this configuration entry. |
void |
setValue(java.lang.String[] stringArray)
Sets the value if this configuration entry allows a list of entries ( isList()
returns true) for this configuration entry. |
| Method Detail |
|---|
java.lang.String getKey()
java.lang.String getValue()
void setValue(java.lang.String string)
value - null means to use the default value.void setValue(java.lang.String[] stringArray)
isList()
returns true) for this configuration entry. It shall
not set the value if the given value equals to the current value.
stringArray - null means to use the default value.java.lang.Class getType()
Filepublic enum)Boolean.TYPEInteger.TYPELong.TYPE
java.lang.String getDescription()
void setDescription(java.lang.String description)
description - the description of this configuration entry.boolean isSet()
int getInt()
0 is returned.void setInt(int port)
value - The value to be set.long getLong()
0 is returned.void setLong(long value)
value - The value to be set.boolean getBoolean()
false is returned.Boolean.parseBoolean(java.lang.String)void setBoolean(boolean enabled)
enabled - the boolean value to be set.Boolean.toString(boolean)java.io.File getFile()
void setFile(java.io.File file)
file - the file the value should be set to.java.lang.Enum getEnum()
void setEnum(java.lang.Enum theEnum)
theEnum - the enumeration constant the value should be set to.java.util.EnumSet getEnumSet()
boolean isList()
void setEnumSet(java.util.EnumSet enumSet)
Configuration getConfiguration()
java.lang.String getDoc()
java.lang.String getPropertyFileComment()
java.util.List<java.io.File> getFilelist()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||