Enum Class SchemaMode

java.lang.Object
java.lang.Enum<SchemaMode>
org.bremersee.xml.SchemaMode
All Implemented Interfaces:
Serializable, Comparable<SchemaMode>, Constable

public enum SchemaMode extends Enum<SchemaMode>
The schema mode.
Author:
Christian Bremer
  • Enum Constant Details

    • NEVER

      public static final SchemaMode NEVER
      Never add a schema to the jaxb marshaller or unmarshaller.
    • ALWAYS

      public static final SchemaMode ALWAYS
      Always add schema to the jaxb marshaller or unmarshaller.
    • MARSHAL

      public static final SchemaMode MARSHAL
      Add always a schema to the jaxb marshaller, but not to the unmarshaller.
    • UNMARSHAL

      public static final SchemaMode UNMARSHAL
      Add always a schema to the jaxb unmarshaller, but not to the marshaller.
    • EXTERNAL_XSD

      public static final SchemaMode EXTERNAL_XSD
      Add only a schema to the marshaller or unmarshaller if an external schema specification is used.
  • Method Details

    • values

      public static SchemaMode[] 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

      public static SchemaMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null