public class PropertiesAttributes extends Object implements DynamicAttributes
| Constructor and Description |
|---|
PropertiesAttributes() |
PropertiesAttributes(DefaultPropertiesAccessor properties) |
PropertiesAttributes(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String key) |
String |
getAttribute(String key,
String defaultValue) |
boolean |
getAttributeBoolean(String key) |
boolean |
getAttributeBoolean(String key,
boolean defaultValue) |
double |
getAttributeDouble(String key) |
double |
getAttributeDouble(String key,
double defaultValue) |
int |
getAttributeInt(String key) |
int |
getAttributeInt(String key,
int defaultValue) |
long |
getAttributeLong(String key) |
long |
getAttributeLong(String key,
long defaultValue) |
Collection<String> |
getKeys() |
Listenable<DynamicAttributeListener> |
getListenable() |
boolean |
removeOverride(String key) |
void |
temporaryOverride(String key,
boolean value) |
void |
temporaryOverride(String key,
double value) |
void |
temporaryOverride(String key,
int value) |
void |
temporaryOverride(String key,
long value) |
void |
temporaryOverride(String key,
String value) |
public PropertiesAttributes(Properties properties)
public PropertiesAttributes(DefaultPropertiesAccessor properties)
public PropertiesAttributes()
public String getAttribute(String key)
getAttribute in interface DynamicAttributespublic String getAttribute(String key, String defaultValue)
getAttribute in interface DynamicAttributespublic boolean getAttributeBoolean(String key)
getAttributeBoolean in interface DynamicAttributespublic boolean getAttributeBoolean(String key, boolean defaultValue)
getAttributeBoolean in interface DynamicAttributespublic int getAttributeInt(String key)
getAttributeInt in interface DynamicAttributespublic int getAttributeInt(String key, int defaultValue)
getAttributeInt in interface DynamicAttributespublic long getAttributeLong(String key)
getAttributeLong in interface DynamicAttributespublic long getAttributeLong(String key, long defaultValue)
getAttributeLong in interface DynamicAttributespublic double getAttributeDouble(String key)
getAttributeDouble in interface DynamicAttributespublic double getAttributeDouble(String key, double defaultValue)
getAttributeDouble in interface DynamicAttributespublic void temporaryOverride(String key, boolean value)
temporaryOverride in interface DynamicAttributespublic void temporaryOverride(String key, int value)
temporaryOverride in interface DynamicAttributespublic void temporaryOverride(String key, long value)
temporaryOverride in interface DynamicAttributespublic void temporaryOverride(String key, double value)
temporaryOverride in interface DynamicAttributespublic void temporaryOverride(String key, String value)
temporaryOverride in interface DynamicAttributespublic boolean removeOverride(String key)
removeOverride in interface DynamicAttributespublic Collection<String> getKeys()
getKeys in interface DynamicAttributespublic Listenable<DynamicAttributeListener> getListenable()
getListenable in interface DynamicAttributesCopyright © 2014–2016 Soabase. All rights reserved.