public enum Verbosity extends java.lang.Enum<Verbosity>
Verbosity
enumeration is used to specify a verbosity
preference for the resulting XML. Typically the verbosity preference
is used when serializing an object that does not have explicit XML
annotations associated with a type. In such a scenario this will
indicate whether a high verbosity level is required or a low one.Format
枚举常量和说明 |
---|
HIGH
This specifies a preference for elements over attributes.
|
LOW
This specifies a preference for attributes over elements.
|
public static final Verbosity HIGH
public static final Verbosity LOW
public static Verbosity[] values()
for (Verbosity c : Verbosity.values()) System.out.println(c);
public static Verbosity valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值