public class PropertyAccess extends AccessStrategy
Constructor and Description |
---|
PropertyAccess(Class<?> clazz,
String propertyName)
Create a new PropertyAccess instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
get(Object bean)
Get the value from the given instance.
|
ElementType |
getElementType()
Get the Java program
ElementType used by this AccessStrategy
to determine property values. |
Type |
getJavaType()
Get the type of the property
|
static Object |
getProperty(Object bean,
String propertyName)
Get a named property from
bean . |
String |
getPropertyName()
Get a name representative of this property.
|
int |
hashCode() |
boolean |
isKnown()
Learn whether this
PropertyAccess references a known property. |
String |
toString() |
public ElementType getElementType()
ElementType
used by this AccessStrategy
to determine property values.getElementType
in class AccessStrategy
public static Object getProperty(Object bean, String propertyName) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException
bean
.bean
- propertyName
- InvocationTargetException
NoSuchMethodException
IllegalAccessException
public Type getJavaType()
getJavaType
in class AccessStrategy
public boolean isKnown()
PropertyAccess
references a known property.public String getPropertyName()
getPropertyName
in class AccessStrategy
public Object get(Object bean)
get
in class AccessStrategy
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.