Package org.jvnet.jaxb.plugin.annotate
Class AnnotatePlugin
- java.lang.Object
-
- com.sun.tools.xjc.Plugin
-
- org.jvnet.jaxb.plugin.AbstractPlugin
-
- org.jvnet.jaxb.plugin.AbstractParameterizablePlugin
-
- org.jvnet.jaxb.plugin.annotate.AnnotatePlugin
-
public class AnnotatePlugin extends AbstractParameterizablePlugin
-
-
Field Summary
-
Fields inherited from class org.jvnet.jaxb.plugin.AbstractPlugin
logger
-
-
Constructor Summary
Constructors Constructor Description AnnotatePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidannotateClassOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)protected voidannotateElementOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.ElementOutline elementOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)protected voidannotateEnumConstantOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)protected voidannotateEnumOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)protected voidannotateFieldOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.FieldOutline fieldOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)XAnnotationParsergetAnnotationParser()AnnotatorgetAnnotator()Collection<QName>getCustomizationElementNames()StringgetDefaultFieldTarget()StringgetOptionName()StringgetUsage()protected voidprocessClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)protected voidprocessElementOutline(com.sun.tools.xjc.outline.ElementOutline elementOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)protected voidprocessEnumConstantOutline(com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)protected voidprocessEnumOutline(com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)protected voidprocessFieldOutline(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.outline.FieldOutline fieldOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)booleanrun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)voidsetAnnotationParser(XAnnotationParser annotationParser)voidsetAnnotator(Annotator annotator)voidsetDefaultFieldTarget(String defaultFieldTarget)-
Methods inherited from class org.jvnet.jaxb.plugin.AbstractParameterizablePlugin
parseArgument
-
Methods inherited from class org.jvnet.jaxb.plugin.AbstractPlugin
afterRun, beforeRun, getCustomizationURIs, init, isCustomizationTagName, onActivated, run
-
-
-
-
Field Detail
-
ANNOTATE_PROPERTY_QNAME
public static final QName ANNOTATE_PROPERTY_QNAME
-
ANNOTATE_PROPERTY_GETTER_QNAME
public static final QName ANNOTATE_PROPERTY_GETTER_QNAME
-
ANNOTATE_PROPERTY_SETTER_QNAME
public static final QName ANNOTATE_PROPERTY_SETTER_QNAME
-
ANNOTATE_PROPERTY_FIELD_QNAME
public static final QName ANNOTATE_PROPERTY_FIELD_QNAME
-
ANNOTATE_PROPERTY_SETTER_PARAMETER_QNAME
public static final QName ANNOTATE_PROPERTY_SETTER_PARAMETER_QNAME
-
ANNOTATE_PACKAGE_QNAME
public static final QName ANNOTATE_PACKAGE_QNAME
-
ANNOTATE_CLASS_QNAME
public static final QName ANNOTATE_CLASS_QNAME
-
ANNOTATE_ELEMENT_QNAME
public static final QName ANNOTATE_ELEMENT_QNAME
-
ANNOTATE_ENUM_QNAME
public static final QName ANNOTATE_ENUM_QNAME
-
ANNOTATE_ENUM_CONSTANT_QNAME
public static final QName ANNOTATE_ENUM_CONSTANT_QNAME
-
ANNOTATE_ENUM_VALUE_METHOD_QNAME
public static final QName ANNOTATE_ENUM_VALUE_METHOD_QNAME
-
ANNOTATE_ENUM_FROM_VALUE_METHOD_QNAME
public static final QName ANNOTATE_ENUM_FROM_VALUE_METHOD_QNAME
-
ANNOTATE_QNAME
public static final QName ANNOTATE_QNAME
-
LEGACY_ANNOTATE_PROPERTY_QNAME
public static final QName LEGACY_ANNOTATE_PROPERTY_QNAME
-
LEGACY_ANNOTATE_PROPERTY_GETTER_QNAME
public static final QName LEGACY_ANNOTATE_PROPERTY_GETTER_QNAME
-
LEGACY_ANNOTATE_PROPERTY_SETTER_QNAME
public static final QName LEGACY_ANNOTATE_PROPERTY_SETTER_QNAME
-
LEGACY_ANNOTATE_PROPERTY_FIELD_QNAME
public static final QName LEGACY_ANNOTATE_PROPERTY_FIELD_QNAME
-
LEGACY_ANNOTATE_PROPERTY_SETTER_PARAMETER_QNAME
public static final QName LEGACY_ANNOTATE_PROPERTY_SETTER_PARAMETER_QNAME
-
LEGACY_ANNOTATE_PACKAGE_QNAME
public static final QName LEGACY_ANNOTATE_PACKAGE_QNAME
-
LEGACY_ANNOTATE_CLASS_QNAME
public static final QName LEGACY_ANNOTATE_CLASS_QNAME
-
LEGACY_ANNOTATE_ELEMENT_QNAME
public static final QName LEGACY_ANNOTATE_ELEMENT_QNAME
-
LEGACY_ANNOTATE_ENUM_QNAME
public static final QName LEGACY_ANNOTATE_ENUM_QNAME
-
LEGACY_ANNOTATE_ENUM_CONSTANT_QNAME
public static final QName LEGACY_ANNOTATE_ENUM_CONSTANT_QNAME
-
LEGACY_ANNOTATE_ENUM_VALUE_METHOD_QNAME
public static final QName LEGACY_ANNOTATE_ENUM_VALUE_METHOD_QNAME
-
LEGACY_ANNOTATE_ENUM_FROM_VALUE_METHOD_QNAME
public static final QName LEGACY_ANNOTATE_ENUM_FROM_VALUE_METHOD_QNAME
-
LEGACY_ANNOTATE_QNAME
public static final QName LEGACY_ANNOTATE_QNAME
-
-
Method Detail
-
getOptionName
public String getOptionName()
- Specified by:
getOptionNamein classcom.sun.tools.xjc.Plugin
-
getUsage
public String getUsage()
- Specified by:
getUsagein classcom.sun.tools.xjc.Plugin
-
getDefaultFieldTarget
public String getDefaultFieldTarget()
-
setDefaultFieldTarget
public void setDefaultFieldTarget(String defaultFieldTarget)
-
getAnnotationParser
public XAnnotationParser getAnnotationParser()
-
setAnnotationParser
public void setAnnotationParser(XAnnotationParser annotationParser)
-
getAnnotator
public Annotator getAnnotator()
-
setAnnotator
public void setAnnotator(Annotator annotator)
-
run
public boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)- Overrides:
runin classAbstractPlugin
-
processElementOutline
protected void processElementOutline(com.sun.tools.xjc.outline.ElementOutline elementOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)
-
processEnumOutline
protected void processEnumOutline(com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)
-
processClassOutline
protected void processClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)
-
processFieldOutline
protected void processFieldOutline(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.outline.FieldOutline fieldOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)
-
processEnumConstantOutline
protected void processEnumConstantOutline(com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler)
-
annotateElementOutline
protected void annotateElementOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.ElementOutline elementOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)
-
annotateEnumOutline
protected void annotateEnumOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.EnumOutline enumOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)
-
annotateEnumConstantOutline
protected void annotateEnumConstantOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)
-
annotateClassOutline
protected void annotateClassOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)
-
annotateFieldOutline
protected void annotateFieldOutline(com.sun.codemodel.JCodeModel codeModel, com.sun.tools.xjc.outline.FieldOutline fieldOutline, com.sun.tools.xjc.model.CCustomizations customizations, ErrorHandler errorHandler)
-
getCustomizationElementNames
public Collection<QName> getCustomizationElementNames()
- Overrides:
getCustomizationElementNamesin classAbstractPlugin
-
-