Package org.apache.bval.jsr.metadata
Enum AnnotationBehavior
- java.lang.Object
-
- java.lang.Enum<AnnotationBehavior>
-
- org.apache.bval.jsr.metadata.AnnotationBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationBehavior>
,Function<Iterable<? extends HasAnnotationBehavior>,AnnotationBehavior>
,AnnotationBehaviorMergeStrategy
public enum AnnotationBehavior extends Enum<AnnotationBehavior> implements AnnotationBehaviorMergeStrategy
Models the behavior of aMetadataBuilder
with regard to bean validation annotations.- See Also:
DualBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationBehavior
apply(Iterable<? extends HasAnnotationBehavior> t)
static AnnotationBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnnotationBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCLUDE
public static final AnnotationBehavior INCLUDE
-
EXCLUDE
public static final AnnotationBehavior EXCLUDE
-
ABSTAIN
public static final AnnotationBehavior ABSTAIN
-
-
Method Detail
-
values
public static AnnotationBehavior[] 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 (AnnotationBehavior c : AnnotationBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationBehavior 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
-
apply
public AnnotationBehavior apply(Iterable<? extends HasAnnotationBehavior> t)
- Specified by:
apply
in interfaceFunction<Iterable<? extends HasAnnotationBehavior>,AnnotationBehavior>
-
-