|
||||||||
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(java.util.Properties properties,
java.lang.String path,
java.lang.String defaultValue)
Creates a string property. |
Method Summary | |
---|---|
java.lang.String |
get()
Retrieves the value of this property. |
java.lang.String |
get(boolean required)
Retrieves the value of this property, optionally failing if there is no value. |
java.lang.String |
get(java.lang.String defaultValue)
Retrieves the value of this property, or the default value if none is found. |
void |
set(java.lang.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(java.util.Properties properties, java.lang.String path, java.lang.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 java.lang.String get()
public java.lang.String get(boolean required)
public java.lang.String get(java.lang.String defaultValue)
public void set(java.lang.String value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |