Enum Class ExtraMetadataPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ExtraMetadataPolicy>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtraMetadataPolicy
Returns the enum constant of this class with the specified name.static ExtraMetadataPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No non-standard metadata is ever allowed.When reading a mapping set, this policy instructs the parser to discard any non-standard metadata slot. When writing, this policy instructs the writer never to write the contents of the
extra_metadata
field. -
DEFINED
Requires that non-standard metadata slots be defined.When reading a mapping set, this policy instructs the parser to discard any non-standard metadata slot except those defined in the set-level
extension_definitions
slot.When writing, this policy instructs the writer to write all available non-standard metadata and to make sure the non-standard metadata are defined.
-
UNDEFINED
Accepts all non-standard metadata without requiring a definition.When reading a mapping set, this policy instructs the parser to accept any non-standard metadata slot whether it is defined or not.
When writing, this policy instructs the writer to write all non-standard metadata slots without defining them.
-
-
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
-