org.loom.binding
Interface AnnotationContainer

All Known Subinterfaces:
EventParameter
All Known Implementing Classes:
DefaultEventParameter, PropertyWrapper, RequestParametersParameter

public interface AnnotationContainer

An annotated property or method


Method Summary
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationClass)
           
 java.lang.annotation.Annotation[] getAnnotations()
           
 java.lang.String getDisplayName()
           
 ItemMetadata getItemMetadata(int index)
           
 int getItemMetadataSize()
           
 java.lang.String getName()
           
 java.lang.Class getPropertyClass()
           
 java.lang.Class<?> guessCollectionGenericType()
           
 java.lang.Class<?> guessMapGenericKeyType()
           
 java.lang.Class<?> guessMapGenericValueType()
           
 boolean isCollection()
           
 boolean isMap()
           
 

Method Detail

getAnnotations

java.lang.annotation.Annotation[] getAnnotations()
Returns:
the list of annotations assigned to this container

getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Returns:
the instance of the provided annotation class, null if none is present.

getDisplayName

java.lang.String getDisplayName()
Returns:
the name used to display error or informational messages

getName

java.lang.String getName()
Returns:
the name of this method or property

getPropertyClass

java.lang.Class getPropertyClass()
Returns:
the class of this property/parameter

guessCollectionGenericType

java.lang.Class<?> guessCollectionGenericType()

guessMapGenericKeyType

java.lang.Class<?> guessMapGenericKeyType()

guessMapGenericValueType

java.lang.Class<?> guessMapGenericValueType()

isCollection

boolean isCollection()
Returns:
true if this property is a List, Set or Array

isMap

boolean isMap()
Returns:
true if this property is a Map

getItemMetadata

ItemMetadata getItemMetadata(int index)

getItemMetadataSize

int getItemMetadataSize()