public abstract class AbstractOperation extends AbstractIdentifiedType
apply(Feature, ParameterValueGroup)
.
If the value is modifiable, new value can be set by call to Attribute.setValue(Object)
.
DefaultFeatureType
,
Serialized FormDefined in the sis-feature
module
DEFINITION_KEY, DEPRECATED_KEY, DESCRIPTION_KEY, DESIGNATION_KEY, NAME_KEY
Constructor and Description |
---|
AbstractOperation(Map<String,?> identification)
Constructs an operation from the given properties.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
apply(AbstractFeature feature,
ParameterValueGroup parameters)
Executes the operation on the specified feature with the specified parameters.
|
boolean |
equals(Object obj)
Compares this operation with the given object for equality.
|
Set<String> |
getDependencies()
Returns the names of feature properties that this operation needs for performing its task.
|
abstract ParameterDescriptorGroup |
getParameters()
Returns a description of the input parameters.
|
abstract AbstractIdentifiedType |
getResult()
Returns the expected result type, or
null if none. |
int |
hashCode()
Returns a hash code value for this operation.
|
String |
toString()
Returns a string representation of this operation.
|
getDefinition, getDescription, getDesignation, getName, getRemarks, isDeprecated
public AbstractOperation(Map<String,?> identification)
Map key | Value type | Returned by |
---|---|---|
"name" | GenericName or String |
AbstractIdentifiedType.getName() |
"definition" | InternationalString or String |
AbstractIdentifiedType.getDefinition() |
"designation" | InternationalString or String |
AbstractIdentifiedType.getDesignation() |
"description" | InternationalString or String |
AbstractIdentifiedType.getDescription() |
"deprecated" | Boolean |
AbstractIdentifiedType.isDeprecated() |
identification
- the name and other information to be given to this operation.public abstract ParameterDescriptorGroup getParameters()
public abstract AbstractIdentifiedType getResult()
null
if none.
org.opengis.feature.IdentifiedType
. This change is pending GeoAPI revision.null
if none.public abstract Object apply(AbstractFeature feature, ParameterValueGroup parameters)
getResult()
:
getResult()
returns null
,
then this method should return null
.getResult()
returns an instance of AttributeType
,
then this method shall return an instance of Attribute
and the Attribute.getType() == getResult()
relation should hold.getResult()
returns an instance of FeatureAssociationRole
,
then this method shall return an instance of FeatureAssociation
and the FeatureAssociation.getRole() == getResult()
relation should hold.Operation
to Method
in the Java language, then this method is equivalent
to Method.invoke(Object, Object...)
. The Feature
argument is equivalent to this
in the Java language, and may be null
if the operation does not need a feature instance
(like static methods in the Java language).org.opengis.feature.Feature
and org.opengis.feature.Property
respectively.
This change is pending GeoAPI revision.feature
- the feature on which to execute the operation.
Can be null
if the operation does not need feature instance.parameters
- the parameters to use for executing the operation.
Can be null
if the operation does not take any parameters.null
if this operation does not produce any result.public Set<String> getDependencies()
this
).
SELECT
SQL statement to send to a database server.
The requested columns will typically be all attributes declared in a FeatureType
, but also
any additional columns needed for the operation while not necessarily included in the FeatureType
.
public int hashCode()
hashCode
in class AbstractIdentifiedType
public boolean equals(Object obj)
equals
in class AbstractIdentifiedType
obj
- the object to compare with this type.true
if the given object is equals to this type.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.