public enum AdvancedEntityRefUsage extends java.lang.Enum<AdvancedEntityRefUsage>
An advanced mode for controlling some specialist use cases, where both the entity references and their replacement text are
compared. In most use cases the AUTOMATIC
value should be used, to enable context dependent setting of this
advanced mode.
One use case where you might want to set this variable explicitly is: when you configure the comparator for standard 'round
trip' lexical preservation, but the final output format cannot represent entity references. In this case, the
REPLACE
value can be used. This is an alternative to specifying a custom processing mode that performs round trip
processing, except for entity references which are substituted for their values (i.e. their replacement text) prior to the
comparison.
Enum Constant and Description |
---|
AUTOMATIC
Choose one of the other three behaviours in a context dependent manner.
|
CHANGE
Keep the encoded form of the entity reference, with its change markup.
|
REPLACE
Extract the replacement text from the encoded entity reference.
|
SPLIT
The encoded entity references have their replacement text removed and are split into 'new' and 'old' versions on detection of
change.
|
Modifier and Type | Method and Description |
---|---|
static AdvancedEntityRefUsage |
getAdvancedEntityRefUsage(java.lang.String val)
Returns a ExtendedBooleanProcessingMode object from the supplied String value if appropriate.
|
java.lang.String |
toString()
The string representation of the enumerated type constants.
|
static AdvancedEntityRefUsage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvancedEntityRefUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvancedEntityRefUsage CHANGE
public static final AdvancedEntityRefUsage SPLIT
public static final AdvancedEntityRefUsage REPLACE
public static final AdvancedEntityRefUsage AUTOMATIC
public static AdvancedEntityRefUsage[] values()
for (AdvancedEntityRefUsage c : AdvancedEntityRefUsage.values()) System.out.println(c);
public static AdvancedEntityRefUsage 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<AdvancedEntityRefUsage>
public static AdvancedEntityRefUsage getAdvancedEntityRefUsage(java.lang.String val)
Returns a ExtendedBooleanProcessingMode 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 EntityRefProcessingMode value or null for the default value