org.exolab.castor.builder

Interface AnnotationBuilder

public interface AnnotationBuilder

This interface is a hook for (external) tools to add annotations to classes, fields and enums during the XML code generation process. Custom implementations of AnnotationBuilder instances can be added to a code generation execution using SourceGenerator.addAnnotationBuilder(AnnotationBuilder)
Since:
1.1.3

Method Summary

void
addClassAnnotations(ClassInfo classInfo, JClass jClass)
add annotations to a JClass.
void
addEnumAnnotations(SimpleType simpleType, JEnum jEnums)
add annotations to a java5 enum.
void
addEnumConstantAnnotations(Facet facet, JEnumConstant enumConstant)
add annotations to a java5 enum constant.
void
addFieldAnnotations(FieldInfo fieldInfo, JField field)
add annotation to a property definition.
void
addFieldGetterAnnotations(FieldInfo fieldInfo, JMethod method)
add annotations to a getter of a property.

Method Details

addClassAnnotations

public void addClassAnnotations(ClassInfo classInfo,
                                JClass jClass)
add annotations to a JClass.
Parameters:
classInfo - the classInfo
jClass - the jClass

addEnumAnnotations

public void addEnumAnnotations(SimpleType simpleType,
                               JEnum jEnums)
add annotations to a java5 enum.
Parameters:
simpleType - the corresponding simpleType
jEnums - the jEnum

addEnumConstantAnnotations

public void addEnumConstantAnnotations(Facet facet,
                                       JEnumConstant enumConstant)
add annotations to a java5 enum constant.
Parameters:
facet - the corresponding facet
enumConstant - the jEnumConstant

addFieldAnnotations

public void addFieldAnnotations(FieldInfo fieldInfo,
                                JField field)
add annotation to a property definition.
Parameters:
fieldInfo - the fieldInfo
field - the jField

addFieldGetterAnnotations

public void addFieldGetterAnnotations(FieldInfo fieldInfo,
                                      JMethod method)
add annotations to a getter of a property.
Parameters:
fieldInfo - the fieldInfo
method - the getter method

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com