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)
Get the metadata value for the name
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)
Return true is the value
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata. |
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)
Set the value of a metadata.
|
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, isTransformsOriginalValues
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
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
name
.
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.getDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
{#Metadata.getDynValue}
public boolean hasDynValue(String name)
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.
hasDynValue
in interface FeatureStoreTransform
{#Metadata.hasDynValue}
public void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue
in interface FeatureStoreTransform
DynFieldNotFoundException
{#Metadata.getDynValue}
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()}.