public enum DefaultAttProcessingMode extends java.lang.Enum<DefaultAttProcessingMode>
Represents the behaviour required when outputting defaulted attributes. Most behaviour is the same as
PreservationProcessingMode
with two extra options specific to defaulted attributes.
Please note that attribute changes are always output (unless handled elsewhere) regardless of whether the attribute was provided with a default value.
for common output settings
Enum Constant and Description |
---|
A
Attributes that were default in version A should be default in the result.
|
AB
Attributes that were default in either input version should be default in the result.
|
AUTOMATIC
Use the default
PreservationProcessingMode if the defaulted attribute items are being preserved, otherwise the same
as CHANGE . |
B
Attributes that were default in version B should be default in the result.
|
BA
Attributes that were default in either input version should be default in the result.
|
CHANGE
Leave the changes to the encoded defaultAttributeInfo in place, i.e.
|
DEFAULT
If an attribute was provided with a default value in either of the inputs, it should be default in the result
(provided that it has the same value).
|
EXPLICIT
If an attribute was explicit in either of the inputs, it should be explicit in the result.
|
Modifier and Type | Method and Description |
---|---|
static DefaultAttProcessingMode |
getDefaultAttProcessingMode(java.lang.String val)
Returns a DefaultAttProcessingMode object from the supplied String value if appropriate.
|
java.lang.String |
toString()
The string representation of the enumerated type constants.
|
static DefaultAttProcessingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultAttProcessingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultAttProcessingMode A
public static final DefaultAttProcessingMode B
public static final DefaultAttProcessingMode AB
public static final DefaultAttProcessingMode BA
public static final DefaultAttProcessingMode CHANGE
public static final DefaultAttProcessingMode AUTOMATIC
PreservationProcessingMode
if the defaulted attribute items are being preserved, otherwise the same
as CHANGE
.public static final DefaultAttProcessingMode DEFAULT
public static final DefaultAttProcessingMode EXPLICIT
public static DefaultAttProcessingMode[] values()
for (DefaultAttProcessingMode c : DefaultAttProcessingMode.values()) System.out.println(c);
public static DefaultAttProcessingMode 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<DefaultAttProcessingMode>
public static DefaultAttProcessingMode getDefaultAttProcessingMode(java.lang.String val)
Returns a DefaultAttProcessingMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
val
- a String representation of a DefaultAttProcessingMode value or null for the default value