Enum ExtraMetadataPolicy
- java.lang.Object
-
- java.lang.Enum<ExtraMetadataPolicy>
-
- org.incenp.obofoundry.sssom.ExtraMetadataPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<ExtraMetadataPolicy>
public enum ExtraMetadataPolicy extends Enum<ExtraMetadataPolicy>
Represents the behaviour to adopt regarding non-standard metadata slots.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtraMetadataPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static ExtraMetadataPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ExtraMetadataPolicy 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_metadatafield.
-
DEFINED
public static final ExtraMetadataPolicy 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_definitionsslot.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
public static final ExtraMetadataPolicy 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 Detail
-
values
public static ExtraMetadataPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExtraMetadataPolicy c : ExtraMetadataPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtraMetadataPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-