public class BeanProperty<T> extends BaseProperty<T>
| Modifier | Constructor and Description |
|---|---|
|
BeanProperty(Class<T> beanType,
String path,
T defaultValue) |
|
BeanProperty(Class<T> beanType,
String path,
T defaultValue,
Mapper mapper) |
protected |
BeanProperty(TypeInformation beanType,
String path,
T defaultValue,
Mapper mapper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
getFromReader(PropertyReader reader)
Constructs the value of the property from the property reader.
|
Object |
toExportValue(T value)
Converts the given value to a representation that is suitable for exporting by a property resource.
|
determineValue, getDefaultValue, getPath, isPresent, isValidValue, toStringprotected BeanProperty(TypeInformation beanType, String path, T defaultValue, Mapper mapper)
beanType - the bean typepath - the pathdefaultValue - the default valuemapper - the mapper to map withprotected T getFromReader(PropertyReader reader)
BasePropertygetFromReader in class BaseProperty<T>reader - the reader to read frompublic Object toExportValue(T value)
Property
The values which are suitable for returning depend on the support of the used property resource. By default,
the supported types include null, String, Integer, Double, Boolean; Collection of the aforementioned
types; Map with String keys and values of any of the aforementioned types. Maps and collections can be nested at
any arbitrary level. Null signifies that the property/value should be skipped in the export.
value - the value to convert to an export valueCopyright © 2016–2018 The AuthMe Team. All rights reserved.