public class FunctionAttribute<T> extends Object implements PojoAttribute<T>
FunctionAttribute class.
| Constructor and Description |
|---|
FunctionAttribute(Class<T> clazz,
Method getter,
Method setter,
String name,
FunctionAttribute<Object> parent)
Constructor for FunctionAttribute.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
canRead.
|
boolean |
canWrite()
canWrite.
|
T |
get(Object pojo)
get.
|
<A extends Annotation> |
getAnnotation(Class<? extends A> annotationClass)
getAnnotation.
|
Class<T> |
getManagedClass()
getManagedClass.
|
String |
getName()
getName.
|
Class<T> |
getType()
getType.
|
void |
set(Object pojo,
T value)
set.
|
String |
toString() |
public FunctionAttribute(Class<T> clazz, Method getter, Method setter, String name, FunctionAttribute<Object> parent)
Constructor for FunctionAttribute.
clazz - a Class object.getter - a Method object.setter - a Method object.name - a String object.parent - a FunctionAttribute object.public Class<T> getManagedClass()
getManagedClass.
getManagedClass in interface PojoAttribute<T>Class object.public boolean canRead()
canRead.
canRead in interface PojoAttribute<T>public boolean canWrite()
canWrite.
canWrite in interface PojoAttribute<T>public Class<T> getType()
getType.
getType in interface PojoAttribute<T>Class object.public void set(Object pojo, T value) throws IOException
set.
set in interface PojoAttribute<T>pojo - a Object object.value - a T object.IOException - if any.public T get(Object pojo) throws IOException
get.
get in interface PojoAttribute<T>pojo - a Object object.IOException - if any.public String getName()
getName.
getName in interface PojoAttribute<T>String object.public <A extends Annotation> A getAnnotation(Class<? extends A> annotationClass)
getAnnotation.
getAnnotation in interface PojoAttribute<T>A - a A object.annotationClass - a Class object.Copyright © 2016. All Rights Reserved.