Package com.deltaxml.core.config
Enum Class ModifiedAttributeMode
- All Implemented Interfaces:
Serializable,Comparable<ModifiedAttributeMode>,Constable
Defined the modified attribute processing mode.
- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe behaviour will depend on other parameter settings, primarily the output-format.The associated modified attribute filter will be skipped, thus leaving the delta attribute change markup alone.Output the 'A' version of modified attributes and any deleted ('A') attributes.Output the 'A' version of modified attributes.Output the 'B' version of modified attributes and any added ('B') attributes.Output the 'B' version of modified attributes.Output the 'B' version of modified attributes and any added ('B') attributes but additionally show the changes encoded as attributes in the attribute-change ('ac') namespace. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiedAttributeModegetModifiedAttributeMode(String value) Returns a ModifiedAttributeMode object from the supplied String value if appropriate.toString()Returns a String representation of ModifiedAttributeMode.static ModifiedAttributeModeReturns the enum constant of this class with the specified name.static ModifiedAttributeMode[]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
-
AUTOMATIC
The behaviour will depend on other parameter settings, primarily the output-format. If the output format is able to show attribute changes, modified attributes will not be processed differently, otherwise 'B' mode will be chosen. -
CHANGE
The associated modified attribute filter will be skipped, thus leaving the delta attribute change markup alone. -
DOCUMENT_B
Output the 'B' version of modified attributes and any added ('B') attributes. Note that deleted ('A') attributes will not be output. -
DOCUMENT_B_THEN_A
Output the 'B' version of modified attributes. Output both inserted ('B') and deleted ('A') attributes. -
DOCUMENT_A
Output the 'A' version of modified attributes and any deleted ('A') attributes. Note that added ('B') attributes will not be output. -
DOCUMENT_A_THEN_B
Output the 'A' version of modified attributes. Output both inserted ('B') and deleted ('A') attributes. -
ENCODE_AS_ATTRIBUTES
Output the 'B' version of modified attributes and any added ('B') attributes but additionally show the changes encoded as attributes in the attribute-change ('ac') namespace.
-
-
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
Returns a String representation of ModifiedAttributeMode.
- Overrides:
toStringin classEnum<ModifiedAttributeMode>- Returns:
- a String representing the ModifiedAttributeMode object
-
getModifiedAttributeMode
Returns a ModifiedAttributeMode 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:
value- a String representation of a ModifiedAttributeMode value- Returns:
- the ModifiedAttributeMode instance corresponding to the parameter, or null if the value is invalid
-