Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.oml.internal.goml.omwg.comparator
Class OneOfComparator

java.lang.Object
  extended by 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

Constructor Summary
OneOfComparator()
           
 
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
 

Constructor Detail

OneOfComparator

public OneOfComparator()
Method Detail

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

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d