Enum Class DefaultType

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

public enum DefaultType extends Enum<DefaultType>
The DefaultType enumeration is used to specify the type of defaults to apply to a class. The Default annotation is used to specify which type of default to apply. If applied the serializer will synthesize an XML annotation for the fields or properties of the object. The synthesized annotations will have default values for its attributes.
See Also:
  • Enum Constant Details

    • FIELD

      public static final DefaultType FIELD
      This tells the serializer to default all member fields.
    • PROPERTY

      public static final DefaultType PROPERTY
      This tells the serializer to default all property methods.
  • Constructor Details

    • DefaultType

      private DefaultType()
  • Method Details

    • values

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