public enum XamlAttributeWritePolicy extends Enum<XamlAttributeWritePolicy>
GraphML.writeAsAttribute(),
XamlSerializer| Enum Constant and Description |
|---|
ALWAYS
Always write as XML attribute.
|
AUTO
Specifies that the write mode of a member should be determined automatically according to the current property value and
the presence of
ValueSerializers and the like. |
NEVER
Never write as a XML attribute, even if a possible conversion exists.
|
| Modifier and Type | Method and Description |
|---|---|
static XamlAttributeWritePolicy |
fromOrdinal(int ordinal) |
int |
value() |
static XamlAttributeWritePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XamlAttributeWritePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XamlAttributeWritePolicy ALWAYS
This can be used for special cases where the default implementation does not detect a valid conversion, but some part of the (de)serialization is handled manually.
public static final XamlAttributeWritePolicy AUTO
ValueSerializers and the like.
Usually, an implementation would write the member as attribute if the content can somehow be (directly or indirectly) converted to a valid XML attribute content (i.e. a simple string)
public static final XamlAttributeWritePolicy NEVER
public static final XamlAttributeWritePolicy fromOrdinal(int ordinal)
public int value()
public static XamlAttributeWritePolicy valueOf(String name)
IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullname - the name of the enum constant to be returned.public static XamlAttributeWritePolicy[] values()
for (XamlAttributeWritePolicy c : XamlAttributeWritePolicy.values()) System.out.println(c);