org.opengis.feature
Class FeatureStoreEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.opengis.feature.FeatureStoreEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class FeatureStoreEvent extends java.util.EventObjectInstances of this class are passed to the methods ofFeatureStoreListenerwhen the user of theFeatureStoreadds, deletes, or modifies a feature type. Events regarding changes to an individual feature are given with an instance ofFeatureEvent.- Since:
- GeoAPI 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intADDConstant that indicates that a new feature type was added to a feature store.static intDELETEConstant that indicates that a feature type's schema was removed from a feature store.static intMODIFYConstant that indicates that a feature type's schema was modified in a feature store.
-
Constructor Summary
Constructors Constructor and Description FeatureStoreEvent(FeatureStore featureStore, GenericName typeName, int eventType)Constructs a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetEventType()Returns the type of this event.FeatureStoregetFeatureStore()Synonym forgetSource(), but does the cast for you.java.lang.ObjectgetSource()Returns the source as a feature store.GenericNamegetTypeName()Returns the name of theFeatureTypethat was modified.java.lang.StringtoString()Returns a string representation of this event.
-
-
-
Field Detail
-
ADD
public static final int ADD
Constant that indicates that a new feature type was added to a feature store.- See Also:
- Constant Field Values
-
MODIFY
public static final int MODIFY
Constant that indicates that a feature type's schema was modified in a feature store.- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
Constant that indicates that a feature type's schema was removed from a feature store.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FeatureStoreEvent
public FeatureStoreEvent(FeatureStore featureStore, GenericName typeName, int eventType)
Constructs a new event.
-
-
Method Detail
-
getSource
public java.lang.Object getSource()
Returns the source as a feature store.- Overrides:
getSourcein classjava.util.EventObject
-
getFeatureStore
public FeatureStore getFeatureStore()
Synonym forgetSource(), but does the cast for you.
-
getTypeName
public GenericName getTypeName()
Returns the name of theFeatureTypethat was modified.
-
getEventType
public int getEventType()
-
toString
public java.lang.String toString()
Returns a string representation of this event. Of the form"FeatureStore (featureStore.displayName|featureStore) (ADD|MODIFY|DELETE) Event".- Overrides:
toStringin classjava.util.EventObject
-
-
DataMelt 3.0 © DataMelt by jWork.ORG