Package org.simpleframework.xml
Enum Class DefaultType
- All Implemented Interfaces:
Serializable
,Comparable<DefaultType>
,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultType
Returns the enum constant of this class with the specified name.static DefaultType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIELD
This tells the serializer to default all member fields. -
PROPERTY
This tells the serializer to default all property methods.
-
-
Constructor Details
-
DefaultType
private DefaultType()
-
-
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
-