org.codehaus.annogen.override
Interface AnnoBean


public interface AnnoBean

Provides a proxied, modifiable view of a JSR175 annotation. Implementations of this interface are usually code-generated by the AnnogenTask.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Field Summary
static java.lang.String SINGLE_MEMBER_NAME
          Name of the member of annotations which have only a single member.
 
Method Summary
 AnnoBean createNestableBean(java.lang.Class beanOrAnnoType)
          Returns an instance of an AnnoBean for the given annotation type which can be used as an AnnoBean for a nested annotation value.
 boolean setValue(java.lang.String name, java.lang.Object value)
           
 

Field Detail

SINGLE_MEMBER_NAME

static final java.lang.String SINGLE_MEMBER_NAME

Name of the member of annotations which have only a single member. As specified in JSR175, that name is "value", but you should use this constant to prevent typos.

See Also:
Constant Field Values
Method Detail

setValue

boolean setValue(java.lang.String name,
                 java.lang.Object value)

createNestableBean

AnnoBean createNestableBean(java.lang.Class beanOrAnnoType)
Returns an instance of an AnnoBean for the given annotation type which can be used as an AnnoBean for a nested annotation value. This does NOT 'add' the nested annotation to this AnnoBean - it is expected that the caller will later pass it as the value parameter of a subsequent call to setValue. Note that this can also be used for constructing elements of an array of nested annotation values.