Interface PropertyAccessorFactory.PropertyAccessorShortValue
- All Superinterfaces:
PropertyAccessor
- Enclosing class:
PropertyAccessorFactory
protected static interface PropertyAccessorFactory.PropertyAccessorShortValue
extends PropertyAccessor
Interface for property accessors that handle short-typed properties.
Provides methods to get and set short values, with conversions to
other types as needed.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleangetBooleanValue(Object object) Gets the property value as a boolean.default bytegetByteValue(Object object) Gets the property value as a byte.default chargetCharValue(Object object) Gets the property value as a char.default doublegetDoubleValue(Object object) Gets the property value as a double.default floatgetFloatValue(Object object) Gets the property value as a float.default intgetIntValue(Object object) Gets the property value as an int.default longgetLongValue(Object object) Gets the property value as a long.default ObjectGets the property value as an Object.default voidsetBooleanValue(Object object, boolean value) Sets the property value from a boolean.default voidsetByteValue(Object object, byte value) Sets the property value from a byte.default voidsetCharValue(Object object, char value) Sets the property value from a char.default voidsetDoubleValue(Object object, double value) Sets the property value from a double.default voidsetFloatValue(Object object, float value) Sets the property value from a float.default voidsetIntValue(Object object, int value) Sets the property value from an int.default voidsetLongValue(Object object, long value) Sets the property value from a long.default voidSets the property value from an Object.Methods inherited from interface PropertyAccessor
getShortValue, name, propertyClass, propertyType, setShortValue, supportGet, supportSet
-
Method Details
-
getObject
Description copied from interface:PropertyAccessorGets the property value as an Object.- Specified by:
getObjectin interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as Object
-
getByteValue
Description copied from interface:PropertyAccessorGets the property value as a byte.- Specified by:
getByteValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as byte
-
getCharValue
Description copied from interface:PropertyAccessorGets the property value as a char.- Specified by:
getCharValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as char
-
getIntValue
Description copied from interface:PropertyAccessorGets the property value as an int.- Specified by:
getIntValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as int
-
getLongValue
Description copied from interface:PropertyAccessorGets the property value as a long.- Specified by:
getLongValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as long
-
getFloatValue
Description copied from interface:PropertyAccessorGets the property value as a float.- Specified by:
getFloatValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as float
-
getDoubleValue
Description copied from interface:PropertyAccessorGets the property value as a double.- Specified by:
getDoubleValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as double
-
getBooleanValue
Description copied from interface:PropertyAccessorGets the property value as a boolean.- Specified by:
getBooleanValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as boolean
-
setObject
Description copied from interface:PropertyAccessorSets the property value from an Object.- Specified by:
setObjectin interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the value to set
-
setByteValue
Description copied from interface:PropertyAccessorSets the property value from a byte.- Specified by:
setByteValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the byte value to set
-
setCharValue
Description copied from interface:PropertyAccessorSets the property value from a char.- Specified by:
setCharValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the char value to set
-
setIntValue
Description copied from interface:PropertyAccessorSets the property value from an int.- Specified by:
setIntValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the int value to set
-
setLongValue
Description copied from interface:PropertyAccessorSets the property value from a long.- Specified by:
setLongValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the long value to set
-
setFloatValue
Description copied from interface:PropertyAccessorSets the property value from a float.- Specified by:
setFloatValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the float value to set
-
setDoubleValue
Description copied from interface:PropertyAccessorSets the property value from a double.- Specified by:
setDoubleValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the double value to set
-
setBooleanValue
Description copied from interface:PropertyAccessorSets the property value from a boolean.- Specified by:
setBooleanValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the boolean value to set
-