public class FeatureManager extends Object
Constructor and Description |
---|
FeatureManager(ExpansionAdapter expansionAdapter) |
Modifier and Type | Method and Description |
---|---|
void |
add(Feature feature)
DOCUMENT ME!
|
void |
clear() |
Feature |
delete(FeatureReference id)
Deletes feature from this manager.
|
Feature |
deleteLastFeature()
DOCUMENT ME!
|
Feature |
get(FeatureReference id,
FeatureStore store)
Returns a Feature of the default type.
|
Feature |
get(FeatureReference id,
FeatureStore store,
FeatureType featureType)
Returns a Feature of the given type.
|
Iterator |
getDeleted() |
long |
getDeltaSize() |
Iterator |
getInserted() |
Iterator |
getUpdated() |
boolean |
hasChanges() |
boolean |
hasNews() |
boolean |
isDeleted(Feature feature) |
boolean |
isDeleted(FeatureReference featureID) |
boolean |
isSelectionCompromised()
Indicates if any operation has comprimised the selected features.
|
void |
restore(FeatureReference id)
DOCUMENT ME!
|
void |
restore(FeatureReference id,
int num) |
int |
update(Feature feature,
Feature oldFeature)
DOCUMENT ME!
|
public FeatureManager(ExpansionAdapter expansionAdapter)
public Feature delete(FeatureReference id)
id
- public void add(Feature feature)
feature
- DOCUMENT ME!public Feature deleteLastFeature()
id
- DOCUMENT ME!public Feature get(FeatureReference id, FeatureStore store) throws DataException
id
- the feature referencestore
- the store to get the feature fromDataException
- if there is an error getting the Featurepublic Feature get(FeatureReference id, FeatureStore store, FeatureType featureType) throws DataException
id
- the feature referencestore
- the store to get the feature fromfeatureType
- the type of the feature to returnDataException
- if there is an error getting the Featurepublic int update(Feature feature, Feature oldFeature)
feature
- DOCUMENT ME!oldFeature
- DOCUMENT ME!public void restore(FeatureReference id)
id
- DOCUMENT ME!public void restore(FeatureReference id, int num)
public boolean isDeleted(Feature feature)
public boolean isDeleted(FeatureReference featureID)
public void clear()
public boolean hasChanges()
public Iterator getDeleted()
public Iterator getInserted()
public Iterator getUpdated()
public boolean hasNews()
public long getDeltaSize()
public boolean isSelectionCompromised()