public class StringProperty extends Property
properties| Constructor and Description |
|---|
StringProperty(Properties properties,
String path,
String defaultValue)
Creates a string property.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBooleanpublic 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.public String get()
public String get(boolean required)
public String get(String defaultValue)
Copyright © 2012–2015 Julian Hyde. All rights reserved.