public class ArooaAnnotationsHelper extends Object implements ArooaAnnotations
ArooaAnnotations
.Constructor and Description |
---|
ArooaAnnotationsHelper(ArooaClass classIdentifier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationDefintion(AnnotationDefinition defintion)
Add an annotation definition.
|
void |
addPropertyDefinition(PropertyDefinition definition)
Add a property definition.
|
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.
|
String |
toString() |
public ArooaAnnotationsHelper(ArooaClass classIdentifier)
classIdentifier
- public void addPropertyDefinition(PropertyDefinition definition)
definition
- public void addAnnotationDefintion(AnnotationDefinition defintion)
defintion
- public Method methodFor(String annotationName)
ArooaAnnotations
methodFor
in interface ArooaAnnotations
annotationName
- The annotation name.public String[] annotatedProperties()
ArooaAnnotations
annotatedProperties
in interface ArooaAnnotations
public ArooaAnnotation[] annotationsForProperty(String propertyName)
ArooaAnnotations
annotationsForProperty
in interface ArooaAnnotations
propertyName
- The property name.public ArooaAnnotation annotationForProperty(String propertyName, String annotationName)
ArooaAnnotations
annotationForProperty
in interface ArooaAnnotations
propertyName
- The name of the property.annotationName
- The name of the annotation.