public class DefaultFeatureStoreTransforms extends Object implements FeatureStoreTransforms, Persistent
Constructor and Description |
---|
DefaultFeatureStoreTransforms() |
DefaultFeatureStoreTransforms(DefaultFeatureStore store) |
Modifier and Type | Method and Description |
---|---|
FeatureStoreTransform |
add(FeatureStoreTransform transform)
Adds a FeatureStoreTransform to this container.
|
Feature |
applyTransform(DefaultFeature source,
FeatureType targetFeatureType) |
protected void |
checkEditingMode() |
void |
clear()
Empties this container.
|
Object |
clone()
Creates a copy of the object.
|
FeatureType |
getDefaultFeatureType() |
Object |
getDynValue(String name) |
FeatureStore |
getFeatureStore() |
FeatureType |
getFeatureType(String featureTypeId) |
List<FeatureType> |
getFeatureTypes() |
FeatureType |
getSourceFeatureTypeFrom(FeatureType targetFeatureType) |
FeatureStoreTransform |
getTransform(int index)
Returns the FeatureStoreTransform given its index.
|
boolean |
hasDynValue(String name) |
boolean |
isEmpty()
Indicates whether this container is empty.
|
boolean |
isTransformsOriginalValues()
Retruns true if any
FeatureStoreTransform make changes of any
previous attributes values. |
Iterator<FeatureStoreTransform> |
iterator()
Returns an iterator over this container elements.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
protected void |
notifyChangeToStore() |
static void |
registerPersistent() |
boolean |
remove(FeatureStoreTransform transform)
Removes the given
FeatureStoreTransform . |
Object |
remove(int index)
Removes the
FeatureStoreTransform given its index. |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDynValue(String name,
Object value) |
void |
setFeatureStore(FeatureStore featureStore) |
void |
setStoreForClone(FeatureStore featureStore) |
int |
size()
Returns the number of FeatureStoreTransforms stored in this container
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultFeatureStoreTransforms()
public DefaultFeatureStoreTransforms(DefaultFeatureStore store)
protected void checkEditingMode()
protected void notifyChangeToStore()
public FeatureStoreTransform add(FeatureStoreTransform transform) throws DataException
FeatureStoreTransforms
add
in interface FeatureStoreTransforms
transform
- the FeatureStoreTransform to addDataException
public void clear()
FeatureStoreTransforms
clear
in interface FeatureStoreTransforms
public FeatureStoreTransform getTransform(int index)
FeatureStoreTransforms
getTransform
in interface FeatureStoreTransforms
index
- a position in this FeatureStoreTransformspublic Iterator<FeatureStoreTransform> iterator()
FeatureStoreTransforms
iterator
in interface Iterable<FeatureStoreTransform>
iterator
in interface FeatureStoreTransforms
public Object remove(int index)
FeatureStoreTransforms
FeatureStoreTransform
given its index.remove
in interface FeatureStoreTransforms
index
- the position of the FeatureStoreTransform
to remove.public boolean remove(FeatureStoreTransform transform)
FeatureStoreTransforms
FeatureStoreTransform
.remove
in interface FeatureStoreTransforms
transform
- FeatureStoreTransform
to removepublic int size()
FeatureStoreTransforms
size
in interface FeatureStoreTransforms
public boolean isEmpty()
FeatureStoreTransforms
isEmpty
in interface FeatureStoreTransforms
public Feature applyTransform(DefaultFeature source, FeatureType targetFeatureType) throws DataException
DataException
public FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
public FeatureType getDefaultFeatureType() throws DataException
DataException
public List<FeatureType> getFeatureTypes() throws DataException
DataException
public FeatureStore getFeatureStore()
public void setFeatureStore(FeatureStore featureStore)
public void setStoreForClone(FeatureStore featureStore)
public boolean isTransformsOriginalValues()
FeatureStoreTransforms
FeatureStoreTransform
make changes of any
previous attributes values.FeatureStoreTransform
affects only to attributes defition,
the FeatureSet
performance can be better.isTransformsOriginalValues
in interface FeatureStoreTransforms
public FeatureType getFeatureType(String featureTypeId) throws DataException
DataException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistent()
public Object getDynValue(String name) throws DynFieldNotFoundException
DynFieldNotFoundException
public void setDynValue(String name, Object value) throws DynFieldNotFoundException
DynFieldNotFoundException
public boolean hasDynValue(String name)
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.