public static enum FeatureEvent.Type extends Enum<FeatureEvent.Type>
Enum Constant and Description |
---|
ADDED
Features have been added.
|
CHANGED
Features have been updated.
|
COMMIT
Changes have been committed.
|
REMOVED
Features have been removed.
|
ROLLBACK
Changes have been reverted.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
public static final FeatureEvent.Type ADDED
FeatureEvent.getFilter() lists the FeatureIds of the newly created features; please note that these IDs may be changed during a commit.
public static final FeatureEvent.Type CHANGED
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.
public static final FeatureEvent.Type REMOVED
The FeatureEvent.getFilter() can be used to identify the removed features; often this is a FidFilter.
public static final FeatureEvent.Type COMMIT
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.
public static final FeatureEvent.Type ROLLBACK
public static FeatureEvent.Type[] values()
for (FeatureEvent.Type c : FeatureEvent.Type.values()) System.out.println(c);
public static FeatureEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1996–2023 Geotools. All rights reserved.