Annotation Interface Enumeration
Annotation for adding an enumeration of values to a Resource Schema object. This annotation
is parsed by
SchemaUtil.fromType
to add an enumeration of values
by first calling provider()
to get the Enumeration.Provider
class to instantiate, then calling
the default constructor for the class to get a new instance of the Enumeration.Provider
implementation,
and then finally calling Enumeration.Provider.values()
to get the enumeration values as an object array.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface for providing enumeration values -
Required Element Summary
Required Elements
-
Element Details
-
provider
Class<? extends Enumeration.Provider> provider- Returns:
- a
Class
of typeEnumeration.Provider
whose default constructor will be used to create a new instance theEnumeration.Provider
which will then be used to callEnumeration.Provider.values()
to derive the enumeration values to add to the schema definition.
-