Package org.minimalj.model.properties
Class FieldProperty
java.lang.Object
org.minimalj.model.properties.FieldProperty
- All Implemented Interfaces:
PropertyInterface
public class FieldProperty extends java.lang.Object implements PropertyInterface
-
Constructor Summary
Constructors Constructor Description FieldProperty(java.lang.reflect.Field field)
-
Method Summary
Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
java.lang.Class<?>
getClazz()
java.lang.Class<?>
getDeclaringClass()
java.lang.Class<?>
getGenericClass()
java.lang.String
getName()
java.lang.String
getPath()
java.lang.Object
getValue(java.lang.Object object)
boolean
isFinal()
void
setValue(java.lang.Object object, java.lang.Object value)
-
Constructor Details
-
FieldProperty
public FieldProperty(java.lang.reflect.Field field)
-
-
Method Details
-
getDeclaringClass
public java.lang.Class<?> getDeclaringClass()- Specified by:
getDeclaringClass
in interfacePropertyInterface
-
getValue
public java.lang.Object getValue(java.lang.Object object)- Specified by:
getValue
in interfacePropertyInterface
-
setValue
public void setValue(java.lang.Object object, java.lang.Object value)- Specified by:
setValue
in interfacePropertyInterface
-
getName
public java.lang.String getName()- Specified by:
getName
in interfacePropertyInterface
-
getPath
public java.lang.String getPath()- Specified by:
getPath
in interfacePropertyInterface
-
getGenericClass
public java.lang.Class<?> getGenericClass()- Specified by:
getGenericClass
in interfacePropertyInterface
-
getClazz
public java.lang.Class<?> getClazz()- Specified by:
getClazz
in interfacePropertyInterface
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)- Specified by:
getAnnotation
in interfacePropertyInterface
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfacePropertyInterface
-