org.geotools.data
Enum FeatureEvent.Type

Object
  extended by Enum<FeatureEvent.Type>
      extended by FeatureEvent.Type
All Implemented Interfaces:
Serializable, Comparable<FeatureEvent.Type>
Enclosing class:
FeatureEvent

public static enum FeatureEvent.Type
extends Enum<FeatureEvent.Type>


Enum Constant Summary
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.
 
Method Summary
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're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.repalceFid 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 final FeatureEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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


Copyright © 1996-2009 Geotools. All Rights Reserved.