Package org.aksw.commons.beans.model
Class PropertyModel
java.lang.Object
org.aksw.commons.beans.model.PropertyModel
- All Implemented Interfaces:
PropertyOps
PropertyOps implementation that delegates most calls
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConversionServiceprotected Stringprotected Methodprotected BiConsumer<Object,Object> protected Class<?>protected Method -
Constructor Summary
ConstructorsConstructorDescriptionPropertyModel(String name, Class<?> clazz, Function<Object, ?> getter, BiConsumer<Object, Object> setter, ConversionService conversionService, Function<Class<?>, Object> annotationFinder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsType(Class<?> clazz) <A> AfindAnnotation(Class<A> annotationClass) getName()BiConsumer<Object,?> Class<?>getType()If applicable, returns the write method associated with this property.booleanbooleanvoidsetAnnotationFinder(Function<Class<?>, Object> annotationFinder) voidvoidsetReadMethod(Method readMethod) voidsetSetter(BiConsumer<Object, Object> setter) voidvoidvoidsetWriteMethod(Method writeMethod) toString()
-
Field Details
-
name
-
type
-
getter
-
setter
-
annotationFinder
-
readMethod
-
writeMethod
-
conversionService
-
-
Constructor Details
-
PropertyModel
public PropertyModel() -
PropertyModel
-
-
Method Details
-
getName
- Specified by:
getNamein interfacePropertyOps
-
getType
- Specified by:
getTypein interfacePropertyOps
-
getGetter
-
setGetter
-
getSetter
-
setSetter
-
getValue
- Specified by:
getValuein interfacePropertyOps
-
setValue
- Specified by:
setValuein interfacePropertyOps
-
toString
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfacePropertyOps
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfacePropertyOps
-
getReadMethod
- Specified by:
getReadMethodin interfacePropertyOps
-
setReadMethod
-
getWriteMethod
Description copied from interface:PropertyOpsIf applicable, returns the write method associated with this property. A return value of null only indicates, that no Java method has been associated with the property ops. The property may still be writable.- Specified by:
getWriteMethodin interfacePropertyOps- Returns:
-
setWriteMethod
-
findAnnotation
- Specified by:
findAnnotationin interfacePropertyOps
-
getAnnotationFinder
-
setAnnotationFinder
-
setType
-
acceptsType
- Specified by:
acceptsTypein interfacePropertyOps
-