Enum FeatureEvent.Type

    • Enum Constant Detail

      • 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 Detail

      • values

        public static FeatureEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FeatureEvent.Type c : FeatureEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FeatureEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getType

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