public abstract class PropertyStore extends Object
Modifier and Type | Field and Description |
---|---|
protected FrequentlyAccessedProperties |
frequentProperties |
protected Map<String,Object> |
properties
Map of properties.
|
Constructor and Description |
---|
PropertyStore() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getBooleanObjectProperty(String name)
Accessor for the specified property as a Boolean.
|
boolean |
getBooleanProperty(String name)
Accessor for the specified property as a boolean.
|
boolean |
getBooleanProperty(String name,
boolean resultIfNotSet)
Accessor for the specified property as a boolean.
|
FrequentlyAccessedProperties |
getFrequentProperties() |
int |
getIntProperty(String name)
Accessor for the specified property as an int.
|
Object |
getProperty(String name)
Method to get the value of a property from the store.
|
String |
getStringProperty(String name)
Accessor for the specified property as a String.
|
boolean |
hasProperty(String name)
Accessor for whether a particular property is defined (but may be null).
|
boolean |
hasPropertyNotNull(String name)
Accessor for whether a particular property is defined and has a non-null value.
|
protected void |
setPropertyInternal(String name,
Object value)
Method to set a property in the store
|
protected FrequentlyAccessedProperties frequentProperties
protected void setPropertyInternal(String name, Object value)
name
- Name of the propertyvalue
- Its valuepublic Object getProperty(String name)
name
- Name of the propertypublic boolean hasProperty(String name)
name
- Property namepublic boolean hasPropertyNotNull(String name)
name
- Property namepublic int getIntProperty(String name)
name
- Name of the propertyPropertyTypeInvalidException
- thrown when the property is not available as this typepublic boolean getBooleanProperty(String name)
name
- Name of the propertyPropertyTypeInvalidException
- thrown when the property is not available as this typepublic boolean getBooleanProperty(String name, boolean resultIfNotSet)
name
- Name of the propertyresultIfNotSet
- The value to return if no value for the specified property is found.PropertyTypeInvalidException
- thrown when the property is not available as this typepublic Boolean getBooleanObjectProperty(String name)
name
- Name of the propertyPropertyTypeInvalidException
- thrown when the property is not available as this typepublic String getStringProperty(String name)
name
- Name of the propertyPropertyTypeInvalidException
- thrown when the property is not available as this typepublic FrequentlyAccessedProperties getFrequentProperties()
Copyright © 2019. All rights reserved.