|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DefaultType> org.simpleframework.xml.DefaultType
public 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.
Default
Enum Constant Summary | |
---|---|
FIELD
This tells the serializer to default all member fields. |
|
PROPERTY
This tells the serializer to default all property methods. |
Method Summary | |
---|---|
static DefaultType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DefaultType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DefaultType FIELD
public static final DefaultType PROPERTY
Method Detail |
---|
public static DefaultType[] values()
for (DefaultType c : DefaultType.values()) System.out.println(c);
public static DefaultType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |