public abstract class AbstractPropertyRetriever extends Object implements PropertyRetriever
AbstractResource to make them common to subclasses.| Modifier and Type | Field and Description |
|---|---|
protected Lock |
readLock |
protected Lock |
writeLock |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPropertyRetriever() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getBoolean(BooleanProperty property) |
Boolean |
getBoolean(String key) |
protected Boolean |
getBooleanProperty(String key)
Returns an actual boolean value instead of a possible null Boolean value since desired usage
is to have either a true or false.
|
protected char[] |
getCharArray(CharacterArrayProperty property) |
protected Date |
getDateProperty(DateProperty key) |
protected Double |
getDoubleProperty(DoubleProperty property) |
protected Double |
getDoubleProperty(String key) |
protected List |
getEnumListProperty(EnumListProperty property)
Returns the
List property identified by key |
protected <E extends Enum<E>> |
getEnumProperty(EnumProperty<E> enumProperty) |
protected <E extends Enum<E>> |
getEnumProperty(String key,
Class<E> type) |
protected int |
getInt(IntegerProperty property) |
Integer |
getInteger(String key) |
List<Integer> |
getIntegerList(String key) |
protected abstract Map<String,Object> |
getInternalProperties() |
protected Integer |
getIntProperty(IntegerProperty property) |
protected Integer |
getIntProperty(String key) |
protected List |
getListProperty(ListProperty property)
Returns the
List property identified by key |
protected List |
getListProperty(String key)
Returns the
List property identified by key |
protected Map |
getMap(MapProperty mapProperty) |
protected Map |
getMapProperty(String key) |
protected Map |
getNonEmptyMap(MapProperty mapProperty) |
protected Boolean |
getNullableBoolean(BooleanProperty property) |
protected Boolean |
getNullableBooleanProperty(String key) |
Double |
getNumber(String key) |
List<Double> |
getNumberList(String key) |
abstract Object |
getProperty(String name) |
String |
getString(String key) |
protected String |
getString(StringProperty property) |
List<String> |
getStringList(String key) |
protected String |
getStringProperty(String key) |
protected boolean |
isPrintableProperty(String name)
Returns
true if the internal property is safe to print in toString(), false otherwise. |
protected void |
setProperty(Property property,
Object value) |
void |
setProperty(String name,
Object value) |
protected abstract Object |
setProperty(String name,
Object value,
boolean dirty) |
public String getString(String key)
getString in interface PropertyRetrieverpublic Integer getInteger(String key)
getInteger in interface PropertyRetrieverpublic Double getNumber(String key)
getNumber in interface PropertyRetrieverpublic Boolean getBoolean(String key)
getBoolean in interface PropertyRetrieverpublic List<String> getStringList(String key)
getStringList in interface PropertyRetrieverpublic List<Integer> getIntegerList(String key)
getIntegerList in interface PropertyRetrieverpublic List<Double> getNumberList(String key)
getNumberList in interface PropertyRetrieverprotected String getString(StringProperty property)
protected int getInt(IntegerProperty property)
protected Integer getIntProperty(IntegerProperty property)
protected Double getDoubleProperty(DoubleProperty property)
protected boolean getBoolean(BooleanProperty property)
protected Boolean getBooleanProperty(String key)
key - the identifierprotected Boolean getNullableBoolean(BooleanProperty property)
protected Date getDateProperty(DateProperty key)
protected List getListProperty(String key)
List property identified by keykey - the identifierprotected List getListProperty(ListProperty property)
List property identified by keyproperty - identifierpropertyprotected List getEnumListProperty(EnumListProperty property)
List property identified by keyproperty - identifierpropertyprotected Map getMap(MapProperty mapProperty)
protected Map getNonEmptyMap(MapProperty mapProperty)
protected <E extends Enum<E>> E getEnumProperty(EnumProperty<E> enumProperty)
protected char[] getCharArray(CharacterArrayProperty property)
protected boolean isPrintableProperty(String name)
true if the internal property is safe to print in toString(), false otherwise.name - The name of the property to check for safe printingtrue if the internal property is safe to print in toString(), false otherwise.Copyright © 2017–2022 Okta. All rights reserved.