public class BeanProperty extends AbstractProperty
BeanProperty which is bound to a particular instance| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Method |
getAccessor()
Return the accessor
Method for this property |
Object |
getInstance()
Return the object instance this property is bound to
|
Method |
getMutator()
Return the mutator
Method for this property |
Object |
getValue()
Return the value of this property from the contained instance
|
<T> T |
getValue(Class<T> type)
Return the value of this property from the given object cast to the given type.
|
int |
hashCode() |
boolean |
hasValue(Object value)
Return
true if the value of this property on this instance matches the supplied value |
boolean |
isNull()
Return
true if the value of this property on this instance is null |
boolean |
setValue(Object value)
Set the value of this property on the object to the given value.
|
String |
toString() |
getDeclaringType, getDeclaringTypeCanonicalName, getDeclaringTypeSimpleName, getName, getType, getTypeCanonicalName, getTypeParameter, getTypeParameters, getTypeSimpleName, hasAnyTypeParameters, hasName, hasTypeParameter, isArray, isBoolean, isByte, isCharacter, isCollection, isDate, isDouble, isEnum, isFloat, isGeneric, isInteger, isIterable, isList, isLong, isMap, isPrimitive, isSet, isShort, isString, isType, isTypepublic Object getInstance()
public <T> T getValue(Class<T> type)
ClassCastException if the value is not of the given type.type - the type to return the value aspublic Object getValue()
type - the type to return the value aspublic boolean hasValue(Object value)
true if the value of this property on this instance matches the supplied valuepublic boolean isNull()
true if the value of this property on this instance is nullpublic boolean setValue(Object value)
RuntimeException if the property does not exist or return true if the
property was successfullly set.value - the value to set this property to on the instancepublic boolean equals(Object obj)
equals in class AbstractPropertypublic int hashCode()
hashCode in class AbstractPropertypublic String toString()
toString in class AbstractPropertyCopyright © 2015. All rights reserved.