public interface PropertyAccessor
| Modifier and Type | Method and Description |
|---|---|
default Boolean |
getBooleanProperty(String propName)
Gets the
boolean typed property associated with the given property name. |
default Boolean |
getBooleanProperty(String propName,
boolean defaultPropValue)
Gets the
boolean typed property associated with the given property name. |
default Double |
getDoubleProperty(String propName)
Gets the
double typed property associated with the given property name. |
default Double |
getDoubleProperty(String propName,
double defaultPropValue)
Gets the
double typed property associated with the given property name. |
default Float |
getFloatProperty(String propName)
Gets the
float typed property associated with the given property name. |
default Float |
getFloatProperty(String propName,
float defaultPropValue)
Gets the
float typed property associated with the given property name. |
default Integer |
getIntegerProperty(String propName)
Gets the
integer typed property associated with the given property name. |
default Integer |
getIntegerProperty(String propName,
int defaultPropValue)
Gets the
integer typed property associated with the given property name. |
default Long |
getLongProperty(String propName)
Gets the
long typed property associated with the given property name. |
default Long |
getLongProperty(String propName,
long defaultPropValue)
Gets the
long typed property associated with the given property name. |
Map<String,String> |
getProperties()
Gets the all properties.
|
String |
getProperty(String propName)
Gets the property associated with given property name.
|
default String |
getProperty(String propName,
String defaultPropValue)
Gets the
string typed property associated with the given property name. |
default boolean |
hasProperty(String propName)
Checks whether there is existing property associated with given property name.
|
String getProperty(String propName)
propName - the name of property to be retrievedMap<String,String> getProperties()
default boolean hasProperty(String propName)
propName - name of the property to be checked whether it is existtrue if property is exist, false otherwisedefault String getProperty(String propName, String defaultPropValue)
string typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existdefault Boolean getBooleanProperty(String propName)
boolean typed property associated with the given property name.propName - name of the propertynull otherwisedefault Boolean getBooleanProperty(String propName, boolean defaultPropValue)
boolean typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existdefault Integer getIntegerProperty(String propName)
integer typed property associated with the given property name.propName - name of the propertynull otherwisedefault Integer getIntegerProperty(String propName, int defaultPropValue)
integer typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existdefault Long getLongProperty(String propName)
long typed property associated with the given property name.propName - name of the propertynull otherwisedefault Long getLongProperty(String propName, long defaultPropValue)
long typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existdefault Float getFloatProperty(String propName)
float typed property associated with the given property name.propName - name of the propertynull otherwisedefault Float getFloatProperty(String propName, float defaultPropValue)
float typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existdefault Double getDoubleProperty(String propName)
double typed property associated with the given property name.propName - name of the propertynull otherwisedefault Double getDoubleProperty(String propName, double defaultPropValue)
double typed property associated with the given property name.propName - name of the propertydefaultPropValue - default value of the property to be returned
if requested property is not existCopyright © 2018. All Rights Reserved.