deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.filterencoding
Class LogicalOperation

java.lang.Object
  extended by org.deegree.model.filterencoding.AbstractOperation
      extended by org.deegree.model.filterencoding.LogicalOperation
All Implemented Interfaces:
Operation

public class LogicalOperation
extends AbstractOperation

Encapsulates the information of a logical_ops entity (as defined in the Filter DTD).

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
 
Fields inherited from class org.deegree.model.filterencoding.AbstractOperation
operatorId
 
Constructor Summary
LogicalOperation(int operatorId, java.util.List<Operation> arguments)
          Constructs a new LogicalOperation.
 
Method Summary
static Operation buildFromDOM(org.w3c.dom.Element element)
          Deprecated. use the 1.0.0 filter encoding aware method instead.
static Operation buildFromDOM(org.w3c.dom.Element element, boolean useVersion_1_0_0)
          Given a DOM-fragment, a corresponding Operation-object is built.
 boolean evaluate(Feature feature)
          Calculates the LogicalOperation's logical value based on the certain property values of the given Feature.
 java.util.List<Operation> getArguments()
          Returns the arguments of the operation.
 java.lang.StringBuffer to100XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0.
 java.lang.StringBuffer to110XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.
 java.lang.StringBuffer toXML()
          Produces an XML representation of this object.
 
Methods inherited from class org.deegree.model.filterencoding.AbstractOperation
getOperatorId, getOperatorName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalOperation

public LogicalOperation(int operatorId,
                        java.util.List<Operation> arguments)
Constructs a new LogicalOperation.

Parameters:
operatorId -
arguments -
See Also:
OperationDefines
Method Detail

getArguments

public java.util.List<Operation> getArguments()
Returns the arguments of the operation. These are OperationsMetadata as well.

Returns:
a list of arguments of the operation

buildFromDOM

@Deprecated
public static Operation buildFromDOM(org.w3c.dom.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:
opertation
Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid

buildFromDOM

public static Operation buildFromDOM(org.w3c.dom.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 -
Returns:
opertation
Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid

toXML

public java.lang.StringBuffer toXML()
Description copied from interface: Operation
Produces an XML representation of this object.

Returns:
an XML representation of this object.

to100XML

public java.lang.StringBuffer to100XML()
Description copied from interface: Operation
Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0.

Returns:
an XML representation of this object

to110XML

public java.lang.StringBuffer to110XML()
Description copied from interface: Operation
Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.

Returns:
an XML representation of this object

evaluate

public boolean evaluate(Feature feature)
                 throws FilterEvaluationException
Calculates the LogicalOperation's logical value based on the certain property values of the given Feature.

Parameters:
feature - that determines the property values
Returns:
true, if the LogicalOperation evaluates to true, else false
Throws:
FilterEvaluationException - if the evaluation fails

deegree 2.5 (2011/06/29 09:44 build-8-official)

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