Enum Class FeatureEvent.Type

All Implemented Interfaces:
Serializable, Comparable<FeatureEvent.Type>, Constable
Enclosing class:
FeatureEvent

public static enum FeatureEvent.Type extends Enum<FeatureEvent.Type>
  • Enum Constant Details

    • ADDED

      public static final FeatureEvent.Type ADDED
      Features have been added.

      FeatureEvent.getFilter() lists the FeatureIds of the newly created features; please note that these IDs may be changed during a commit.

    • CHANGED

      public static final FeatureEvent.Type CHANGED
      Features have been updated.

      The FeatureEvent.getFilter() can be used to identify the removed features; often this is a FidFilter. But it may be Filter.INCLUDES if we are unsure exactly what has been changed.

    • REMOVED

      public static final FeatureEvent.Type REMOVED
      Features have been removed.

      The FeatureEvent.getFilter() can be used to identify the removed features; often this is a FidFilter.

    • COMMIT

      public static final FeatureEvent.Type COMMIT
      Changes have been committed.

      The BatchFeatureEvent.replaceFid method can be used to update any temporary FeatureIds with the actual FeatureId generated by the commit.

      You can check BatchFeatureEvent getFilter() and getBounds() as well.

    • ROLLBACK

      public static final FeatureEvent.Type ROLLBACK
      Changes have been reverted.
  • Method Details

    • values

      public static FeatureEvent.Type[] 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 FeatureEvent.Type 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
    • fromValue

      public static FeatureEvent.Type fromValue(int value)
    • getType

      public int getType()
      FeatureEvent static constant: FEATURES_ADDED, FEATURES_CHANGED