Package com.deltaxml.core.config
Enum Class DefaultAttProcessingMode
- All Implemented Interfaces:
Serializable,Comparable<DefaultAttProcessingMode>,Constable
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.
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttributes that were default in version A should be default in the result.Attributes that were default in either input version should be default in the result.Use the defaultPreservationProcessingModeif the defaulted attribute items are being preserved, otherwise the same asCHANGE.Attributes that were default in version B should be default in the result.Attributes that were default in either input version should be default in the result.Leave the changes to the encoded defaultAttributeInfo in place, i.e. do nothing.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).If an attribute was explicit in either of the inputs, it should be explicit in the result. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultAttProcessingModeReturns a DefaultAttProcessingMode object from the supplied String value if appropriate.toString()The string representation of the enumerated type constants.static DefaultAttProcessingModeReturns the enum constant of this class with the specified name.static DefaultAttProcessingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
A
Attributes that were default in version A should be default in the result. -
B
Attributes that were default in version B should be default in the result. -
AB
Attributes that were default in either input version should be default in the result. -
BA
Attributes that were default in either input version should be default in the result. (The same behaviour as AB). -
CHANGE
Leave the changes to the encoded defaultAttributeInfo in place, i.e. do nothing. -
AUTOMATIC
Use the defaultPreservationProcessingModeif the defaulted attribute items are being preserved, otherwise the same asCHANGE. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
The string representation of the enumerated type constants. Here, the strings are the same as the enumerated types except for 'AUTOMATIC', 'CHANGE', 'DEFAULT' and 'EXPLICIT' whose string representations are 'auto', 'skip', 'default' and 'explicit' respectively.- Overrides:
toStringin classEnum<DefaultAttProcessingMode>- Returns:
- The string representation of the enumerated type constants.
-
getDefaultAttProcessingMode
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.
- Parameters:
val- a String representation of a DefaultAttProcessingMode value or null for the default value- Returns:
- the DefaultAttProcessingMode instance corresponding to the parameter, or null if the value is invalid
-