|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.util.property.Property
org.eigenbase.util.property.StringProperty
public class StringProperty
Definition and accessor for a string property.
| Field Summary |
|---|
| Fields inherited from class org.eigenbase.util.property.Property |
|---|
properties |
| Constructor Summary | |
|---|---|
StringProperty(Properties properties,
String path,
String defaultValue)
Creates a string property. |
|
| Method Summary | |
|---|---|
String |
get()
Retrieves the value of this property. |
String |
get(boolean required)
Retrieves the value of this property, optionally failing if there is no value. |
String |
get(String defaultValue)
Retrieves the value of this property, or the default value if none is found. |
String |
set(String value)
Sets the value of this property. |
| Methods inherited from class org.eigenbase.util.property.Property |
|---|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBoolean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringProperty(Properties properties,
String path,
String defaultValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value, null if there is no default.| Method Detail |
|---|
public String get()
public String get(boolean required)
public String get(String defaultValue)
public String set(String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||