deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.filterencoding
Class AbstractOperation

java.lang.Object
  extended by org.deegree.model.filterencoding.AbstractOperation
All Implemented Interfaces:
Operation
Direct Known Subclasses:
ComparisonOperation, LogicalOperation, SpatialOperation

public abstract class AbstractOperation
extends Object
implements Operation

Abstract superclass representing spatial_ops, comparison_ops and logical_ops entities (as defined in the Filter DTD). The three different types are reflected in SpatialOperation, ComparisonOperation and LogicalOperation classes.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
protected  int operatorId
          The underlying operator's id.
 
Constructor Summary
AbstractOperation(int operatorId)
           
 
Method Summary
static Operation buildFromDOM(Element element)
          Deprecated. use the 1.0.0 filter encoding aware method instead.
static Operation buildFromDOM(Element element, boolean useVersion_1_0_0)
          Given a DOM-fragment, a corresponding Operation-object is built.
 int getOperatorId()
          Returns the operator's id.
 String getOperatorName()
          Returns the name of the operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.model.filterencoding.Operation
evaluate, to100XML, to110XML, toXML
 

Field Detail

operatorId

protected int operatorId
The underlying operator's id.

See Also:
OperationDefines
Constructor Detail

AbstractOperation

AbstractOperation(int operatorId)
Parameters:
operatorId -
Method Detail

buildFromDOM

@Deprecated
public static Operation buildFromDOM(Element element)
                              throws FilterConstructionException
Deprecated. use the 1.0.0 filter encoding aware method instead.

Given a DOM-fragment, a corresponding Operation-object is built. This method recursively calls other buildFromDOM () - methods to validate the structure of the DOM-fragment.

Parameters:
element -
Returns:
operation instance
Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid

buildFromDOM

public static Operation buildFromDOM(Element element,
                                     boolean useVersion_1_0_0)
                              throws FilterConstructionException
Given a DOM-fragment, a corresponding Operation-object is built. This method recursively calls other buildFromDOM () - methods to validate the structure of the DOM-fragment.

Parameters:
element -
useVersion_1_0_0 - true if the filter encoding 1.0.0 should be used.
Returns:
operation instance
Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid

getOperatorName

public String getOperatorName()
Returns the name of the operator.

Specified by:
getOperatorName in interface Operation
Returns:
operation name

getOperatorId

public int getOperatorId()
Returns the operator's id.

Specified by:
getOperatorId in interface Operation
Returns:
operation id
See Also:
OperationDefines

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org