org.exolab.javasource

Class JAnnotatedElementHelper

public class JAnnotatedElementHelper extends Object implements JAnnotatedElement

Class implements JAnnotatedElement interface on behalf of other classes in this package that implement this interface.

Author: Andrew Fawcett

Constructor Summary
JAnnotatedElementHelper()
Creates a JAnnodatedElementHelper
Method Summary
voidaddAnnotation(JAnnotation annotation)
JAnnotationgetAnnotation(JAnnotationType annotationType)
JAnnotation[]getAnnotations()
booleanhasAnnotations()
booleanisAnnotationPresent(JAnnotationType annotationType)
static voidmain(String[] args)
Test
booleanprintAnnotations(JSourceWriter jsw)
Outputs the list of annotations maintained by this object
JAnnotationremoveAnnotation(JAnnotationType annotationType)

Constructor Detail

JAnnotatedElementHelper

public JAnnotatedElementHelper()
Creates a JAnnodatedElementHelper

Method Detail

addAnnotation

public void addAnnotation(JAnnotation annotation)

getAnnotation

public JAnnotation getAnnotation(JAnnotationType annotationType)

getAnnotations

public JAnnotation[] getAnnotations()

hasAnnotations

public boolean hasAnnotations()

isAnnotationPresent

public boolean isAnnotationPresent(JAnnotationType annotationType)

main

public static void main(String[] args)
Test

Parameters: args

printAnnotations

public boolean printAnnotations(JSourceWriter jsw)
Outputs the list of annotations maintained by this object

Parameters: jsw

removeAnnotation

public JAnnotation removeAnnotation(JAnnotationType annotationType)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com