public class MyTransform extends AbstractFeatureStoreTransform
Modifier and Type | Class and Description |
---|---|
class |
MyTransform.XYTransformException |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name
Constructor and Description |
---|
MyTransform()
A default constructor with out parameters
|
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(Feature source,
EditableFeature target)
Applies this transform to a target editable feature, using data from the
source feature.
|
FeatureType |
getSourceFeatureTypeFrom(FeatureType targetFeatureType)
Returns the FeatureType to use to get data from original store
|
MyTransform |
initialize(FeatureStore store,
String geomName,
String xname,
String yname)
Initializes the transform by assigning the source store and the names of
the necessary attributes.
|
boolean |
isTransformsOriginalValues()
Informs that original values of store don't will be modified
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
clone, getDefaultFeatureType, getDescription, getDynValue, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, hasDynValue, registerPersistent, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata
public MyTransform initialize(FeatureStore store, String geomName, String xname, String yname) throws DataException
store
- source store.geomName
- name of the geometry attribute in the default feature type
from the source store.xname
- name of the attribute containing the X coordinatesyname
- name of the attribute containing the Y coordinatesDataException
public void applyTransform(Feature source, EditableFeature target) throws DataException
source
- feature whose data will be used as sourcetarget
- feature in which the source data will be copiedDataException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractFeatureStoreTransform
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractFeatureStoreTransform
PersistenceException
public FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
FeatureType
public boolean isTransformsOriginalValues()
FeatureStoreTransforms#isTransformsOriginalValues()}