Package org.jvnet.jaxb.plugin
Enum AnnotationTarget
- java.lang.Object
-
- java.lang.Enum<AnnotationTarget>
-
- org.jvnet.jaxb.plugin.AnnotationTarget
-
- All Implemented Interfaces:
Serializable,Comparable<AnnotationTarget>
public enum AnnotationTarget extends Enum<AnnotationTarget>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSELEMENTENUMENUM_CONSTANTENUM_FROM_VALUE_METHODENUM_VALUE_METHODPACKAGEPROPERTY_FIELDPROPERTY_GETTERPROPERTY_SETTERPROPERTY_SETTER_PARAMETER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.codemodel.JAnnotatablegetAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.ClassOutline classOutline)com.sun.codemodel.JAnnotatablegetAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.ElementOutline elementOutline)com.sun.codemodel.JAnnotatablegetAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline)com.sun.codemodel.JAnnotatablegetAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumOutline enumOutline)com.sun.codemodel.JAnnotatablegetAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.FieldOutline fieldOutline)static AnnotationTargetgetAnnotationTarget(String target)static AnnotationTargetgetAnnotationTarget(Element element, AnnotationTarget defaultAnnotationTarget)Set<QName>getNames()StringgetTarget()static AnnotationTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static AnnotationTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE
public static final AnnotationTarget PACKAGE
-
CLASS
public static final AnnotationTarget CLASS
-
PROPERTY_GETTER
public static final AnnotationTarget PROPERTY_GETTER
-
PROPERTY_SETTER
public static final AnnotationTarget PROPERTY_SETTER
-
PROPERTY_FIELD
public static final AnnotationTarget PROPERTY_FIELD
-
PROPERTY_SETTER_PARAMETER
public static final AnnotationTarget PROPERTY_SETTER_PARAMETER
-
ENUM
public static final AnnotationTarget ENUM
-
ENUM_CONSTANT
public static final AnnotationTarget ENUM_CONSTANT
-
ENUM_VALUE_METHOD
public static final AnnotationTarget ENUM_VALUE_METHOD
-
ENUM_FROM_VALUE_METHOD
public static final AnnotationTarget ENUM_FROM_VALUE_METHOD
-
ELEMENT
public static final AnnotationTarget ELEMENT
-
-
Method Detail
-
values
public static AnnotationTarget[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnnotationTarget c : AnnotationTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationTarget valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getTarget
public String getTarget()
-
getAnnotatable
public com.sun.codemodel.JAnnotatable getAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumOutline enumOutline) throws IllegalArgumentException, UnsupportedOperationException
-
getAnnotatable
public com.sun.codemodel.JAnnotatable getAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.EnumConstantOutline enumConstantOutline) throws IllegalArgumentException, UnsupportedOperationException
-
getAnnotatable
public com.sun.codemodel.JAnnotatable getAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.ClassOutline classOutline) throws IllegalArgumentException, UnsupportedOperationException
-
getAnnotatable
public com.sun.codemodel.JAnnotatable getAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.FieldOutline fieldOutline) throws IllegalArgumentException, UnsupportedOperationException
-
getAnnotatable
public com.sun.codemodel.JAnnotatable getAnnotatable(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.outline.ElementOutline elementOutline) throws IllegalArgumentException, UnsupportedOperationException
-
getAnnotationTarget
public static AnnotationTarget getAnnotationTarget(Element element, AnnotationTarget defaultAnnotationTarget)
-
getAnnotationTarget
public static AnnotationTarget getAnnotationTarget(String target)
-
-