eu.esdihumboldt.hale.io.oml.internal.goml.omwg.comparator
Class OneOfComparator
java.lang.Object
eu.esdihumboldt.hale.io.oml.internal.goml.omwg.comparator.OneOfComparator
- All Implemented Interfaces:
- IComparator
public class OneOfComparator
- extends Object
- implements IComparator
Compares the Property values in the sourceRestriction with the
corresponding Property value. If the source Property being
compared contains one occurrence of any value in
the corresponding target Property the evaluation returns true.
- Author:
- Mark Doyle (Logica)
- See Also:
Property
,
IValueExpression
Method Summary |
boolean |
evaluate(Restriction sourceRestriction,
org.opengis.feature.Property sourceProp)
Evaluates the source property against a Restriction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneOfComparator
public OneOfComparator()
evaluate
public boolean evaluate(Restriction sourceRestriction,
org.opengis.feature.Property sourceProp)
- Description copied from interface:
IComparator
- Evaluates the source property against a Restriction. What this means in
detail depends upon the concrete IComparator implementations; this simply
provides the interface for clients to call.
- Specified by:
evaluate
in interface IComparator
- Parameters:
sourceRestriction
- source java.util.List of Restriction.sourceProp
- the source property
- Returns:
- true or false depending upon evaluation defined by the concrete
IComparator implementation.
- See Also:
Restriction
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d