public interface YouScopeProperties
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(StandardProperty property)
Returns the current value of the standard property.
|
boolean |
getProperty(java.lang.String name,
boolean defaultValue)
Returns the property with the given name, or default value if the property is not yet set or set invalidly.
|
double |
getProperty(java.lang.String name,
double defaultValue)
Returns the property with the given name, or default value if the property is not yet set or set invalidly.
|
int |
getProperty(java.lang.String name,
int defaultValue)
Returns the property with the given name, or default value if the property is not yet set or set invalidly.
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Returns the property with the given name, or default value if the property is not yet set or set invalidly.
|
java.lang.String[] |
getProperty(java.lang.String name,
java.lang.String[] defaultValue)
Returns the property with the given name, or default value if the property is not yet set or set invalidly.
|
void |
setProperty(StandardProperty property,
java.lang.Object value)
Sets the standard property to the given value.
|
void |
setProperty(java.lang.String name,
boolean value)
Sets the property with the given name to the given value.
|
void |
setProperty(java.lang.String name,
double value)
Sets the property with the given name to the given value.
|
void |
setProperty(java.lang.String name,
int value)
Sets the property with the given name to the given value.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value.
|
java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- The name of the property.defaultValue
- Default value to return if property is not set or invalid.void setProperty(StandardProperty property, java.lang.Object value)
Double
, Integer
, Boolean
, or String
.property
- The property whose value should be set.value
- The value of the property.java.lang.Object getProperty(StandardProperty property)
Double
, Integer
, Boolean
, or String
.property
- Default property whose value should be returned.int getProperty(java.lang.String name, int defaultValue)
name
- The name of the property.defaultValue
- Default value to return if property is not set or invalid.double getProperty(java.lang.String name, double defaultValue)
name
- The name of the property.defaultValue
- Default value to return if property is not set or invalid.boolean getProperty(java.lang.String name, boolean defaultValue)
name
- The name of the property.defaultValue
- Default value to return if property is not set or invalid.void setProperty(java.lang.String name, java.lang.String value)
name
- Name of the property to set.value
- Value to set the property to.void setProperty(java.lang.String name, int value)
name
- Name of the property to set.value
- Value to set the property to.void setProperty(java.lang.String name, double value)
name
- Name of the property to set.value
- Value to set the property to.void setProperty(java.lang.String name, boolean value)
name
- Name of the property to set.value
- Value to set the property to.java.lang.String[] getProperty(java.lang.String name, java.lang.String[] defaultValue)
name
- The name of the property.defaultValue
- Default value to return if property is not set or invalid.