public class StandardAttributesContainer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCOPE |
Constructor and Description |
---|
StandardAttributesContainer() |
StandardAttributesContainer(DefaultPropertiesAccessor defaultProperties,
List<String> scopes) |
StandardAttributesContainer(List<String> scopes) |
StandardAttributesContainer(Properties defaultProperties,
List<String> scopes) |
Modifier and Type | Method and Description |
---|---|
Map<AttributeKey,Object> |
getAll() |
String |
getAttribute(String key,
String defaultValue) |
boolean |
getAttributeBoolean(String key,
boolean defaultValue) |
double |
getAttributeDouble(String key,
double defaultValue) |
int |
getAttributeInt(String key,
int defaultValue) |
long |
getAttributeLong(String key,
long defaultValue) |
Collection<String> |
getKeys() |
Listenable<DynamicAttributeListener> |
getListenable() |
boolean |
hasKey(AttributeKey key) |
boolean |
removeOverride(String key) |
void |
reset(Map<AttributeKey,Object> newAttributes) |
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) |
static DynamicAttributes |
wrapAttributes(DynamicAttributes attributes,
boolean hasAdminKey) |
public static final String DEFAULT_SCOPE
public StandardAttributesContainer()
public StandardAttributesContainer(Properties defaultProperties, List<String> scopes)
public StandardAttributesContainer(DefaultPropertiesAccessor defaultProperties, List<String> scopes)
public static DynamicAttributes wrapAttributes(DynamicAttributes attributes, boolean hasAdminKey)
public void reset(Map<AttributeKey,Object> newAttributes)
public boolean getAttributeBoolean(String key, boolean defaultValue)
public int getAttributeInt(String key, int defaultValue)
public long getAttributeLong(String key, long defaultValue)
public double getAttributeDouble(String key, double defaultValue)
public void temporaryOverride(String key, boolean value)
public void temporaryOverride(String key, int value)
public void temporaryOverride(String key, long value)
public void temporaryOverride(String key, double value)
public boolean removeOverride(String key)
public Collection<String> getKeys()
public boolean hasKey(AttributeKey key)
public Map<AttributeKey,Object> getAll()
public Listenable<DynamicAttributeListener> getListenable()
Copyright © 2014–2016 Soabase. All rights reserved.