Interface AnnotationAttributeConfiguration
-
public interface AnnotationAttributeConfiguration
- Since:
- 4.0
- Author:
- anistor@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AnnotationAttributeConfiguration.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
allowedValues()
The set of allowed values.Object
defaultValue()
The default value (optional)boolean
isAllowed(AnnotationElement.Value value)
boolean
multiple()
Is it a single value or an array of values?String
name()
The name of the annotation element (required).String
packageName()
The optional package nameAnnotationElement.AttributeType
type()
The type.
-
-
-
Method Detail
-
name
String name()
The name of the annotation element (required).
-
packageName
String packageName()
The optional package name
-
type
AnnotationElement.AttributeType type()
The type. Defaults to String if not explicitly set.
-
multiple
boolean multiple()
Is it a single value or an array of values?
-
defaultValue
Object defaultValue()
The default value (optional)
-
allowedValues
Set<String> allowedValues()
The set of allowed values. This is only used with STRING, IDENTIFIER, or ANNOTATION type. ANNOTATION type must have a single allowed value.
-
isAllowed
boolean isAllowed(AnnotationElement.Value value)
-
-