public abstract class AbstractFeatureStoreTransform extends Object implements FeatureStoreTransform
FeatureStoreTransform
interface to other
transform implementations. It is recommended to extend this class when
implementing new FeatureStoreTransform
s.
The FeatureType
of this class is not persistent: it has to be
generated by the child implementations of this abstract class when they are
created using the persistence mechanism.Modifier and Type | Field and Description |
---|---|
static String |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME |
protected String |
descripcion |
static String |
METADATA_DEFINITION_NAME |
protected String |
name |
Constructor and Description |
---|
AbstractFeatureStoreTransform() |
AbstractFeatureStoreTransform(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
FeatureType |
getDefaultFeatureType()
Returns the default
FeatureType . |
String |
getDescription() |
Object |
getDynValue(String name) |
FeatureStore |
getFeatureStore()
Returns the FeatureStore to which this transform belongs.
|
List |
getFeatureTypes()
Returns this FeatureStoreTransform's FeatureType(s)
|
String |
getName() |
protected DynObject |
getSourceMetadata() |
boolean |
hasDynValue(String name) |
boolean |
isTransformsOriginalValues()
Retruns true if this make changes of any attributes values or false if
only
FeatureType definitions is changed. |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
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 store)
Sets the FeatureStore to which this transform is applied.
|
protected void |
setFeatureTypes(List types,
FeatureType defaultType) |
void |
setSourceMetadata(DynObject metadata)
Sets the original metadata for this transform
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyTransform, getSourceFeatureTypeFrom, setUp
public static final String METADATA_DEFINITION_NAME
public static final String ABSTRACT_FEATURESTORE_DYNCLASS_NAME
protected String name
protected String descripcion
public String getDescription()
getDescription
in interface FeatureStoreTransform
public String getName()
getName
in interface FeatureStoreTransform
public FeatureType getDefaultFeatureType() throws DataException
FeatureStoreTransform
FeatureType
.getDefaultFeatureType
in interface FeatureStoreTransform
FeatureType
DataException
public List getFeatureTypes() throws DataException
FeatureStoreTransform
getFeatureTypes
in interface FeatureStoreTransform
DataException
public void setFeatureStore(FeatureStore store)
FeatureStoreTransform
setFeatureStore
in interface FeatureStoreTransform
store
- FeatureStore to which this transform is applied.public FeatureStore getFeatureStore()
FeatureStoreTransform
getFeatureStore
in interface FeatureStoreTransform
public boolean isTransformsOriginalValues()
FeatureStoreTransform
FeatureType
definitions is changed.isTransformsOriginalValues
in interface FeatureStoreTransform
FeatureStoreTransforms#isTransformsOriginalValues()}
protected void setFeatureTypes(List types, FeatureType defaultType)
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public final void setSourceMetadata(DynObject metadata)
FeatureStoreTransform
setSourceMetadata
in interface FeatureStoreTransform
protected DynObject getSourceMetadata()
public Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
public boolean hasDynValue(String name)
hasDynValue
in interface FeatureStoreTransform
public void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
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()}.