Enum Class EntityReferencePreservationMode

java.lang.Object
java.lang.Enum<EntityReferencePreservationMode>
com.deltaxml.mergecommon.config.EntityReferencePreservationMode
All Implemented Interfaces:
Serializable, Comparable<EntityReferencePreservationMode>, Constable

public enum EntityReferencePreservationMode extends Enum<EntityReferencePreservationMode>
Controls how general entity references appear in the result.
  • Enum Constant Details

    • USE_REPLACEMENT_TEXT

      public static final EntityReferencePreservationMode 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

      public static final EntityReferencePreservationMode 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

      public static final EntityReferencePreservationMode 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

      public static EntityReferencePreservationMode[] 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

      public static EntityReferencePreservationMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null