Class BeanMapEntry
This class can be used to get and set property values on a bean, or to get metadata on a property.
Example:
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
BeanMapEntry
(BeanMap<?> beanMap, BeanPropertyMeta property, String pName) Constructor. -
Method Summary
-
Constructor Details
-
BeanMapEntry
Constructor.- Parameters:
beanMap
- The bean map that this entry belongs to.property
- The bean property.pName
- The bean property name.
-
-
Method Details
-
getKey
-
getValue
Returns the value of this property.If there is a
ObjectSwap
associated with this bean property or bean property type class, then this method will return the transformed value. For example, if the bean property type class is aDate
and the bean property has theTemporalDateSwap.IsoInstant
swap associated with it through the@Swap(value)
annotation, this method will return a String containing an ISO8601 date-time string value. -
setValue
Sets the value of this property.If the property is an array of type
X
, then the value can be aCollection<X>
orX[]
orObject[]
.If the property is a bean type
X
, then the value can either be anX
or aMap
.If there is a
ObjectSwap
associated with this bean property or bean property type class, then you must pass in a transformed value. For example, if the bean property type class is aDate
and the bean property has theTemporalDateSwap.IsoInstant
swap associated with it through the@Swap(value)
annotation, the value being passed in must be a String containing an ISO8601 date-time string value. -
getBeanMap
Returns the bean map that contains this property.- Returns:
- The bean map that contains this property.
-
getMeta
Returns the metadata about this bean property.- Returns:
- Metadata about this bean property.
-
toString
-