|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.info.StorablePropertyAdapter
public class StorablePropertyAdapter
Information about an adapter annotation applied to a property.
| Constructor Summary | |
|---|---|
StorablePropertyAdapter(String propertyName,
Class<?> propertyType,
Class<? extends Annotation> adapterType)
Construct a generic StorablePropertyAdapter instance not attached to a storable definition. |
|
| Method Summary | |
|---|---|
Method |
findAdaptMethod(Class from,
Class to)
Returns an adapt method that supports the given conversion, or null if none. |
Method[] |
findAdaptMethodsFrom(Class from)
Returns all the adapt methods that convert from the given type. |
Method[] |
findAdaptMethodsTo(Class to)
Returns all the adapt methods that convert to the given type. |
Constructor |
getAdapterConstructor()
Returns the constructor for the adapter class. |
Object |
getAdapterInstance()
Returns an instance of the adapter, for which an adapt method is applied to. |
Method |
getAdaptMethod(int index)
Returns a specific adapt method. |
int |
getAdaptMethodCount()
Returns the count of all defined adapt methods. |
Method[] |
getAdaptMethods()
Returns a new array with all the adapt methods in it. |
StorablePropertyAnnotation |
getAnnotation()
Returns the annotation that applied this adapter, or null if none. |
Class[] |
getStorageTypePreferences()
Returns the adapter's storage type preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorablePropertyAdapter(String propertyName,
Class<?> propertyType,
Class<? extends Annotation> adapterType)
StorableProperty.getAdapter() to gain
access to adapter information on actual storable definitions.
propertyName - name of property with adapterpropertyType - declated type of adapted propertyadapterType - adapter type
IllegalArgumentException - if adapterType is not an adapter
definition.| Method Detail |
|---|
public StorablePropertyAnnotation getAnnotation()
public Constructor getAdapterConstructor()
(Class type, String propertyName, Annotation), where
Annotation is the fully resolved annotation.
public Object getAdapterInstance()
public Class[] getStorageTypePreferences()
AdapterDefinition.storageTypePreferences()
public Method findAdaptMethod(Class from,
Class to)
public Method[] findAdaptMethodsFrom(Class from)
public Method[] findAdaptMethodsTo(Class to)
public int getAdaptMethodCount()
public Method getAdaptMethod(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic Method[] getAdaptMethods()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||