T - the type of the object containing the propertystatic final class PropertyAccessorFactory.FunctionAccessorString<T> extends FunctionAccessor<T> implements PropertyAccessorFactory.PropertyAccessorString
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Function<T,java.lang.String> |
getterFunc |
private java.util.function.BiConsumer<T,java.lang.String> |
setterFunc |
exceptionHandler, getter, name, propertyClass, propertyType, setter| Constructor and Description |
|---|
FunctionAccessorString(java.lang.String name,
java.util.function.Function<T,java.lang.String> getterFunc,
java.util.function.BiConsumer<T,java.lang.String> setterFunc) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString(java.lang.Object object)
Gets the property value as a String.
|
void |
setString(java.lang.Object object,
java.lang.String value)
Sets the property value from a String.
|
errorForGet, errorForSet, name, propertyClass, propertyType, supportGet, supportSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getObject, getShortValue, setObjectsetBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValuename, propertyClass, propertyType, supportGet, supportSetprivate final java.util.function.Function<T,java.lang.String> getterFunc
private final java.util.function.BiConsumer<T,java.lang.String> setterFunc
public java.lang.String getString(java.lang.Object object)
PropertyAccessorFactory.PropertyAccessorStringgetString in interface PropertyAccessorFactory.PropertyAccessorStringobject - the object to get the property frompublic void setString(java.lang.Object object,
java.lang.String value)
PropertyAccessorFactory.PropertyAccessorStringsetString in interface PropertyAccessorFactory.PropertyAccessorStringobject - the object to set the property onvalue - the String value to set