to.etc.util
Interface IPropertyAccessor

All Known Implementing Classes:
PropertyInfo

public interface IPropertyAccessor

Generic way to access/represent some kind of property.

Author:
Frits Jalvingh Created on Oct 15, 2010

Method Summary
 java.lang.reflect.Type getActualGenericType()
           
 java.lang.Class<?> getActualType()
           
 java.lang.String getName()
           
 java.lang.Object getValue(java.lang.Object instance)
           
 void setValue(java.lang.Object instance, java.lang.Object value)
           
 

Method Detail

getName

@Nonnull
java.lang.String getName()

getActualType

@Nonnull
java.lang.Class<?> getActualType()

getActualGenericType

@Nullable
java.lang.reflect.Type getActualGenericType()

getValue

@Nullable
java.lang.Object getValue(@Nullable
                                   java.lang.Object instance)
                          throws java.lang.Exception
Throws:
java.lang.Exception

setValue

void setValue(@Nullable
              java.lang.Object instance,
              @Nullable
              java.lang.Object value)
              throws java.lang.Exception
Throws:
java.lang.Exception