Package org.apache.juneau.commons.bean
Class BeanPropertyValue
java.lang.Object
org.apache.juneau.commons.bean.BeanPropertyValue
- All Implemented Interfaces:
Comparable<BeanPropertyValue>
Represents a simple bean property value and the meta-data associated with it.
Thread safety
Instances are immutable and thread-safe.-
Constructor Summary
ConstructorsConstructorDescriptionBeanPropertyValue(BeanPropertyMeta pMeta, String name, Object value, Throwable thrown) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanfinal BeanInfo<?>Returns theBeanInfoof the bean property.final BeanPropertyMetagetMeta()Returns the bean property metadata.final StringgetName()Returns the bean property name.final ThrowableReturns the exception thrown by calling the property getter.final ObjectgetValue()Returns the bean property value.inthashCode()Returns a property map view of this object.toString()
-
Constructor Details
-
BeanPropertyValue
Constructor.- Parameters:
pMeta- The bean property metadata.name- The bean property name.value- The bean property value. Can benull .thrown- The exception thrown by calling the property getter. Can benull if no exception was thrown.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<BeanPropertyValue>
-
equals
-
hashCode
-
getBeanInfo
Returns theBeanInfoof the bean property.Returns the bean-modeling-side SPI type (
BeanInfo). Marshalling-side callers that need theClassMetanarrowing must cast — the concrete instance in-tree is always aClassMeta.- Returns:
- The bean property type info.
-
getMeta
Returns the bean property metadata.- Returns:
- The bean property metadata.
-
getName
Returns the bean property name.- Returns:
- The bean property name.
-
getThrown
Returns the exception thrown by calling the property getter.- Returns:
- The exception thrown by calling the property getter.
-
getValue
Returns the bean property value.- Returns:
- The bean property value.
-
properties
Returns a property map view of this object.- Returns:
- A property map containing the name, value, and type of this bean property.
-
toString
-