Package org.exolab.castor.builder
Interface AnnotationBuilder
-
public interface AnnotationBuilderThis interface is a hook for (external) tools to add annotations to classes, fields and enums during the XML code generation process. Custom implementations ofAnnotationBuilderinstances can be added to a code generation execution usingBuilderConfiguration.addAnnotationBuilder(AnnotationBuilder)- Since:
- 1.1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClassAnnotations(ClassInfo classInfo, JClass jClass)add annotations to a JClass.voidaddEnumAnnotations(SimpleType simpleType, JEnum jEnums)add annotations to a java5 enum.voidaddEnumConstantAnnotations(Facet facet, JEnumConstant enumConstant)add annotations to a java5 enum constant.voidaddFieldAnnotations(FieldInfo fieldInfo, JField field)add annotation to a property definition.voidaddFieldGetterAnnotations(FieldInfo fieldInfo, JMethod method)add annotations to a getter of a property.
-
-
-
Method Detail
-
addClassAnnotations
void addClassAnnotations(ClassInfo classInfo, JClass jClass)
add annotations to a JClass.- Parameters:
classInfo- the classInfojClass- the jClass
-
addFieldAnnotations
void addFieldAnnotations(FieldInfo fieldInfo, JField field)
add annotation to a property definition.- Parameters:
fieldInfo- the fieldInfofield- the jField
-
addFieldGetterAnnotations
void addFieldGetterAnnotations(FieldInfo fieldInfo, JMethod method)
add annotations to a getter of a property.- Parameters:
fieldInfo- the fieldInfomethod- the getter method
-
addEnumAnnotations
void addEnumAnnotations(SimpleType simpleType, JEnum jEnums)
add annotations to a java5 enum.- Parameters:
simpleType- the corresponding simpleTypejEnums- the jEnum
-
addEnumConstantAnnotations
void addEnumConstantAnnotations(Facet facet, JEnumConstant enumConstant)
add annotations to a java5 enum constant.- Parameters:
facet- the corresponding facetenumConstant- the jEnumConstant
-
-