Enum ExtraMetadataPolicy

    • 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_metadata field.

      • 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_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

        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 name
        NullPointerException - if the argument is null