Class BeanProperty<BeanClass, PropertyClass>

java.lang.Object
de.s42.base.beans.BeanProperty<BeanClass, PropertyClass>
Type Parameters:
BeanClass -
PropertyClass -

public final class BeanProperty<BeanClass, PropertyClass> extends Object
Author:
Benjamin Schiller
  • Field Details

    • name

      protected final String name
    • propertyClass

      protected final Class<PropertyClass> propertyClass
    • readMethod

      protected final Method readMethod
    • writeMethod

      protected final Method writeMethod
    • field

      protected final Field field
    • genericTypes

      protected final List<Class> 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

      protected final PropertyDescriptor descriptor
  • Constructor Details

  • Method Details

    • write

      public void write(BeanClass object, Object value) throws InvalidBean
      Throws:
      InvalidBean
    • read

      public <ReturnType> ReturnType read(BeanClass object) throws InvalidBean
      Throws:
      InvalidBean
    • isAnnotationPresent

      public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
    • 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

      public String getName()
    • getReadMethod

      public Method getReadMethod()
    • getWriteMethod

      public Method getWriteMethod()
    • getField

      public Field getField()
    • getGenericTypes

      public List<Class> getGenericTypes()
    • getDescriptor

      public PropertyDescriptor getDescriptor()
    • getPropertyClass

      public Class<PropertyClass> getPropertyClass()
    • toString

      public String toString()
      Overrides:
      toString in class Object