- All Implemented Interfaces:
Serializable
,Comparable<AnnotationTarget>
Represents the place in which a JSON annotation is applied. Some business functionalities are different based on whether
annotation (e.g.
JsonbTransient
, JsonbNumberFormatter
, etc
.) is being applied on
getter method, setter method or directly on the property.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates annotation has been applied on class level.Indicates annotation has been applied on the getter method of the property.Indicates annotation has been applied on property level.Indicates annotation has been applied on the setter method of the property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationTarget
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 Details
-
CLASS
Indicates annotation has been applied on class level. -
PROPERTY
Indicates annotation has been applied on property level. -
GETTER
Indicates annotation has been applied on the getter method of the property. -
SETTER
Indicates annotation has been applied on the setter method of the property.
-
-
Constructor Details
-
AnnotationTarget
private AnnotationTarget()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-