Enum Class Annotation
- All Implemented Interfaces:
Serializable
,Comparable<Annotation>
,Constable
A specialization of a
DefinitionFeature
, such that:
. the XSOM source being always XSAnnotation
,
. the list of these features is provided in the form of a Java enum (Annotation
, i.e., a fixed list of values.
It contains AnnotationBasedFeature
instance (a subclass of DefinitionFeature
) that carries out
practically all the processing.
TODO think if we can somehow unify this with DefinitionFeature
. It seems we could.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
parseAllAnnotations
(Object target, com.sun.xml.xsom.XSAnnotation annotation) void
parseIfApplicable
(Object target, com.sun.xml.xsom.XSAnnotation xsAnnotation) static Annotation
Returns the enum constant of this class with the specified name.static Annotation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS_USE_FOR_EQUALS
-
DEPRECATED
-
DEPRECATED_SINCE
-
DISPLAY_NAME
-
DISPLAY_ORDER
-
DOCUMENTATION
-
ELABORATE
-
EMPHASIZED
Deprecated. -
DISPLAY_HINT
-
EXPERIMENTAL
-
HELP
-
HETEROGENEOUS_LIST_ITEM
-
IGNORE
-
OBJECT_REFERENCE_TARGET_TYPE
-
OPERATIONAL
-
OPTIONAL_CLEANUP
-
PLANNED_REMOVAL
-
PROCESSING
-
REMOVED
-
REMOVED_SINCE
-
SEARCHABLE
-
MERGER
-
NATURAL_KEY
-
SCHEMA_CONTEXT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
parseAllAnnotations
public static void parseAllAnnotations(Object target, com.sun.xml.xsom.XSAnnotation annotation) throws SchemaException - Throws:
SchemaException
-
parseIfApplicable
public void parseIfApplicable(Object target, com.sun.xml.xsom.XSAnnotation xsAnnotation) throws SchemaException - Throws:
SchemaException
-