Class BeanProperty<BeanClass, PropertyClass>
java.lang.Object
de.s42.base.beans.BeanProperty<BeanClass, PropertyClass>
- Type Parameters:
BeanClass-PropertyClass-
- Author:
- Benjamin Schiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertyDescriptorprotected final Fieldprotected final booleanprotected final booleanprotected final Stringprotected final booleanprotected final Class<PropertyClass> protected final booleanprotected final booleanprotected final Methodprotected final booleanprotected final Method -
Constructor Summary
ConstructorsConstructorDescriptionBeanProperty(String name, Class<PropertyClass> propertyClass, Method readMethod, Method writeMethod, Field field, List<Class> genericTypes, boolean own, PropertyDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleancanWrite()<AnnotationType extends Annotation>
Optional<AnnotationType> getAnnotation(Class<? extends AnnotationType> annotationClass) getField()getName()booleanbooleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanisOwn()booleanbooleanbooleanbooleanboolean<ReturnType>
ReturnTypetoString()void
-
Field Details
-
name
-
propertyClass
-
readMethod
-
writeMethod
-
field
-
genericTypes
-
own
protected final boolean own -
write
protected final boolean write -
read
protected final boolean read -
hasGenericTypes
protected final boolean hasGenericTypes -
publicField
protected final boolean publicField -
isTransient
protected final boolean isTransient -
descriptor
-
-
Constructor Details
-
BeanProperty
public BeanProperty(String name, Class<PropertyClass> propertyClass, Method readMethod, Method writeMethod, Field field, List<Class> genericTypes, boolean own, PropertyDescriptor descriptor)
-
-
Method Details
-
write
- Throws:
InvalidBean
-
read
- Throws:
InvalidBean
-
isAnnotationPresent
-
getAnnotation
public <AnnotationType extends Annotation> Optional<AnnotationType> getAnnotation(Class<? extends AnnotationType> annotationClass) -
isTransient
public boolean isTransient() -
isPublicField
public boolean isPublicField() -
isReadOnly
public boolean isReadOnly() -
canRead
public boolean canRead() -
isReadWrite
public boolean isReadWrite() -
isWriteOnly
public boolean isWriteOnly() -
canWrite
public boolean canWrite() -
isOwn
public boolean isOwn() -
hasGenericTypes
public boolean hasGenericTypes() -
getName
-
getReadMethod
-
getWriteMethod
-
getField
-
getGenericTypes
-
getDescriptor
-
getPropertyClass
-
toString
-