Package io.github.astrapi69.model.api
Interface IPropertyReflectionAwareModel<T>
-
- Type Parameters:
T
- the generic type of the model object
- All Superinterfaces:
Attachable
,IDetachable
,IModel<T>
,java.io.Serializable
- All Known Implementing Classes:
AbstractPropertyModel
,PropertyModel
,TypeSafeModel
public interface IPropertyReflectionAwareModel<T> extends IModel<T>
The interfaceIPropertyReflectionAwareModel
provides reflection information about the model object property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.Field
getPropertyField()
Gets the field of model property or null if the field doesn't exist.java.lang.reflect.Method
getPropertyGetter()
Gets the getter method of model property or null if the method doesn't exist.java.lang.reflect.Method
getPropertySetter()
Gets the setter method of model property or null if the method doesn't exist.-
Methods inherited from interface io.github.astrapi69.model.api.Attachable
attach
-
Methods inherited from interface io.github.astrapi69.model.api.IDetachable
detach
-
-
-
-
Method Detail
-
getPropertyField
java.lang.reflect.Field getPropertyField()
Gets the field of model property or null if the field doesn't exist.- Returns:
- the property field
-
getPropertyGetter
java.lang.reflect.Method getPropertyGetter()
Gets the getter method of model property or null if the method doesn't exist.- Returns:
- Method or null
-
getPropertySetter
java.lang.reflect.Method getPropertySetter()
Gets the setter method of model property or null if the method doesn't exist.- Returns:
- Method or null
-
-