Package de.mhus.lib.core.pojo
Class FunctionAttribute<T>
- java.lang.Object
-
- de.mhus.lib.core.pojo.FunctionAttribute<T>
-
- All Implemented Interfaces:
PojoAttribute<T>
public class FunctionAttribute<T> extends Object implements PojoAttribute<T>
-
-
Constructor Summary
Constructors Constructor Description FunctionAttribute(Class<T> clazz, Method getter, Method setter, String name, FunctionAttribute<Object> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead()booleancanWrite()Tget(Object pojo)<A extends Annotation>
AgetAnnotation(Class<? extends A> annotationClass)Class<T>getManagedClass()StringgetName()Class<T>getType()voidset(Object pojo, T value)StringtoString()
-
-
-
Method Detail
-
getManagedClass
public Class<T> getManagedClass()
- Specified by:
getManagedClassin interfacePojoAttribute<T>
-
canRead
public boolean canRead()
- Specified by:
canReadin interfacePojoAttribute<T>
-
canWrite
public boolean canWrite()
- Specified by:
canWritein interfacePojoAttribute<T>
-
getType
public Class<T> getType()
- Specified by:
getTypein interfacePojoAttribute<T>
-
set
public void set(Object pojo, T value) throws IOException
- Specified by:
setin interfacePojoAttribute<T>- Throws:
IOException
-
get
public T get(Object pojo) throws IOException
- Specified by:
getin interfacePojoAttribute<T>- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfacePojoAttribute<T>
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<? extends A> annotationClass)
- Specified by:
getAnnotationin interfacePojoAttribute<T>
-
-