public enum DefaultType extends java.lang.Enum<DefaultType>
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
枚举常量和说明 |
---|
FIELD
This tells the serializer to default all member fields.
|
PROPERTY
This tells the serializer to default all property methods.
|
限定符和类型 | 方法和说明 |
---|---|
static DefaultType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DefaultType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DefaultType FIELD
public static final DefaultType PROPERTY
public static DefaultType[] values()
for (DefaultType c : DefaultType.values()) System.out.println(c);
public static DefaultType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值