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,
java.lang.String geomName,
java.lang.String xname,
java.lang.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, setSourceMetadatapublic MyTransform initialize(FeatureStore store, java.lang.String geomName, java.lang.String xname, java.lang.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 coordinatesDataExceptionpublic 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 copiedDataExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractFeatureStoreTransformPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractFeatureStoreTransformPersistenceExceptionpublic FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
FeatureTypepublic boolean isTransformsOriginalValues()
FeatureStoreTransforms#isTransformsOriginalValues()}