Enum Class PatchApplyFlag

java.lang.Object
java.lang.Enum<PatchApplyFlag>
com.adaptris.core.json.jsonpatch.PatchApplyFlag
All Implemented Interfaces:
Serializable, Comparable<PatchApplyFlag>, Constable

public enum PatchApplyFlag extends Enum<PatchApplyFlag>
Mirrors com.flipkart.zjsonpatch.CompatibilityFlags for configuration purposes.

Since com.flipkart.zjsonpatch.CompatibilityFlags doesn't have a XStreamAlias, it renders poorly for configuration; this enum is simply here to make things look nice.

In the adapter configuration file this class is aliased as json-patch-apply-flag which is the preferred alternative to the fully qualified classname when building your configuration.

  • Enum Constant Details

    • MISSING_VALUES_AS_NULLS

      public static final PatchApplyFlag MISSING_VALUES_AS_NULLS
    • REMOVE_NONE_EXISTING_ARRAY_ELEMENT

      public static final PatchApplyFlag REMOVE_NONE_EXISTING_ARRAY_ELEMENT
  • Method Details

    • values

      public static PatchApplyFlag[] 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 PatchApplyFlag 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
    • actualValue

      public com.flipkart.zjsonpatch.CompatibilityFlags actualValue()
      Get the real value.
      Returns:
      the real com.flipkart.zjsonpatch.CompatibilityFlags value.