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 DynamicAttributes
public String getAttribute(String key, String defaultValue)
getAttribute
in interface DynamicAttributes
public boolean getAttributeBoolean(String key)
getAttributeBoolean
in interface DynamicAttributes
public boolean getAttributeBoolean(String key, boolean defaultValue)
getAttributeBoolean
in interface DynamicAttributes
public int getAttributeInt(String key)
getAttributeInt
in interface DynamicAttributes
public int getAttributeInt(String key, int defaultValue)
getAttributeInt
in interface DynamicAttributes
public long getAttributeLong(String key)
getAttributeLong
in interface DynamicAttributes
public long getAttributeLong(String key, long defaultValue)
getAttributeLong
in interface DynamicAttributes
public double getAttributeDouble(String key)
getAttributeDouble
in interface DynamicAttributes
public double getAttributeDouble(String key, double defaultValue)
getAttributeDouble
in interface DynamicAttributes
public void temporaryOverride(String key, boolean value)
temporaryOverride
in interface DynamicAttributes
public void temporaryOverride(String key, int value)
temporaryOverride
in interface DynamicAttributes
public void temporaryOverride(String key, long value)
temporaryOverride
in interface DynamicAttributes
public void temporaryOverride(String key, double value)
temporaryOverride
in interface DynamicAttributes
public void temporaryOverride(String key, String value)
temporaryOverride
in interface DynamicAttributes
public boolean removeOverride(String key)
removeOverride
in interface DynamicAttributes
public Collection<String> getKeys()
getKeys
in interface DynamicAttributes
public Listenable<DynamicAttributeListener> getListenable()
getListenable
in interface DynamicAttributes
Copyright © 2014–2016 Soabase. All rights reserved.