@Immutable public final class PropertyInfo extends Object implements IPropertyAccessor
| Constructor and Description |
|---|
PropertyInfo(String name,
Method getter,
Method setter) |
| Modifier and Type | Method and Description |
|---|---|
Type |
getActualGenericType() |
Class<?> |
getActualType() |
Class<?> |
getCollectionValueType() |
Method |
getGetter() |
String |
getName() |
Method |
getSetter() |
Object |
getValue(Object instance) |
boolean |
isArrayType() |
boolean |
isCollectionOrArrayType()
Returns T if this is either a collection or an array.
|
boolean |
isCollectionType() |
void |
setValue(Object instance,
Object value) |
String |
toString() |
@Nonnull public String getName()
getName in interface IPropertyAccessor@Nonnull public Class<?> getActualType()
getActualType in interface IPropertyAccessorpublic Type getActualGenericType()
getActualGenericType in interface IPropertyAccessorpublic boolean isCollectionOrArrayType()
public boolean isCollectionType()
public boolean isArrayType()
public Class<?> getCollectionValueType()
@Nullable public Object getValue(@Nullable Object instance) throws Exception
getValue in interface IPropertyAccessorExceptionpublic void setValue(@Nullable Object instance, @Nullable Object value) throws Exception
setValue in interface IPropertyAccessorExceptionCopyright © 2017 etc.to. All rights reserved.