org.oddjob.arooa
Interface ArooaAnnotations

All Known Implementing Classes:
ArooaAnnotationsHelper, NoAnnotations

public interface ArooaAnnotations

Capture annotation information about a bean.

Author:
rob

Method Summary
 String[] annotatedProperties()
          Provide all properties that are annotated.
 ArooaAnnotation annotationForProperty(String propertyName, String annotationName)
          Get the Annotation for a property by annotation name.
 ArooaAnnotation[] annotationsForProperty(String propertyName)
          Get all the annotations for a property.
 Method methodFor(String annotationName)
          Get the method for an annotation name.
 

Method Detail

methodFor

Method methodFor(String annotationName)
Get the method for an annotation name.

Parameters:
annotationName - The annotation name.
Returns:
the method for the annotation name, or null if there isn't one.

annotatedProperties

String[] annotatedProperties()
Provide all properties that are annotated.

Returns:
Array of properties or an empty array. Never null.

annotationForProperty

ArooaAnnotation annotationForProperty(String propertyName,
                                      String annotationName)
Get the Annotation for a property by annotation name.

Parameters:
propertyName - The name of the property.
annotationName - The name of the annotation.
Returns:
The annotation, or null if one doesn't exist.

annotationsForProperty

ArooaAnnotation[] annotationsForProperty(String propertyName)
Get all the annotations for a property.

Parameters:
propertyName - The property name.
Returns:
An array of annotations, may be empty, never null.