Package com.deltaxml.mergecommon.config
Enum Class EntityReferencePreservationMode
java.lang.Object
java.lang.Enum<EntityReferencePreservationMode>
com.deltaxml.mergecommon.config.EntityReferencePreservationMode
- All Implemented Interfaces:
Serializable,Comparable<EntityReferencePreservationMode>,Constable
Controls how general entity references appear in the result.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEntity references remain in the body of the XML content.Entity references remain in the body of the XML content in encoded output format.Entity references are replaced with their 'replacement text' (which may actually include general XML such as text, attributes and elements). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EntityReferencePreservationMode[]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, toString, valueOf
-
Enum Constant Details
-
USE_REPLACEMENT_TEXT
Entity references are replaced with their 'replacement text' (which may actually include general XML such as text, attributes and elements). -
PRESERVE_REFERENCES
Entity references remain in the body of the XML content. Declarations in the internal subset will also be preserved where possible. If multiple declarations with different values are used in the inputs then multiple declarations may appear in the result. -
PRESERVE_REFERENCES_ENCODED_FORM
Entity references remain in the body of the XML content in encoded output format. Declarations in the internal subset will also be preserved where possible. If multiple declarations with different values are used in the inputs then multiple declarations may appear 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
-