Class AnnotationAttributeConfigurationImpl
java.lang.Object
org.infinispan.protostream.config.impl.AnnotationAttributeConfigurationImpl
- All Implemented Interfaces:
AnnotationAttributeConfiguration
final class AnnotationAttributeConfigurationImpl
extends Object
implements AnnotationAttributeConfiguration
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classNested classes/interfaces inherited from interface org.infinispan.protostream.config.AnnotationAttributeConfiguration
AnnotationAttributeConfiguration.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Objectprivate final booleanprivate final StringThe name of the annotation element.private final Stringprivate final AnnotationElement.AttributeType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAnnotationAttributeConfigurationImpl(String name, String packageName, boolean isMultiple, Object defaultValue, AnnotationElement.AttributeType type, Set<String> allowedValues) -
Method Summary
Modifier and TypeMethodDescriptionThe set of allowed values.The default value (optional)booleanisAllowed(AnnotationElement.Value value) booleanmultiple()Is it a single value or an array of values?name()The name of the annotation element (required).The optional package nametype()The type.
-
Field Details
-
name
The name of the annotation element. -
packageName
-
isMultiple
private final boolean isMultiple -
defaultValue
-
type
-
allowedValues
-
-
Constructor Details
-
AnnotationAttributeConfigurationImpl
-
-
Method Details
-
name
Description copied from interface:AnnotationAttributeConfigurationThe name of the annotation element (required).- Specified by:
namein interfaceAnnotationAttributeConfiguration
-
packageName
Description copied from interface:AnnotationAttributeConfigurationThe optional package name- Specified by:
packageNamein interfaceAnnotationAttributeConfiguration
-
multiple
public boolean multiple()Description copied from interface:AnnotationAttributeConfigurationIs it a single value or an array of values?- Specified by:
multiplein interfaceAnnotationAttributeConfiguration
-
defaultValue
Description copied from interface:AnnotationAttributeConfigurationThe default value (optional)- Specified by:
defaultValuein interfaceAnnotationAttributeConfiguration
-
type
Description copied from interface:AnnotationAttributeConfigurationThe type. Defaults to String if not explicitly set.- Specified by:
typein interfaceAnnotationAttributeConfiguration
-
allowedValues
Description copied from interface:AnnotationAttributeConfigurationThe set of allowed values. This is only used with STRING, IDENTIFIER, or ANNOTATION type. ANNOTATION type must have a single allowed value.- Specified by:
allowedValuesin interfaceAnnotationAttributeConfiguration
-
isAllowed
- Specified by:
isAllowedin interfaceAnnotationAttributeConfiguration
-