Package org.geotools.api.data
Enum FeatureEvent.Type
- Object
-
- Enum<FeatureEvent.Type>
-
- Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FeatureEvent.Type>
- Enclosing class:
- FeatureEvent
public static enum FeatureEvent.Type extends Enum<FeatureEvent.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeatureEvent.Type
fromValue(int value)
int
getType()
FeatureEvent static constant: FEATURES_ADDED, FEATURES_CHANGEDstatic FeatureEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FeatureEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
fromValue
public static FeatureEvent.Type fromValue(int value)
-
getType
public int getType()
FeatureEvent static constant: FEATURES_ADDED, FEATURES_CHANGED
-
-