org.openmrs.logic.op
Class In

java.lang.Object
  extended by org.openmrs.logic.op.In
All Implemented Interfaces:
ComparisonOperator, Operator

public class In
extends java.lang.Object
implements ComparisonOperator

The In operator test whether a value is in a collection of value or not.

Example:
Collection answers = Collection.asList("ADULTRETURN");
logicService.parseString(EncounterDataSource.ENCOUNTER_KEY).in(typeNames);
The above criteria will test whether a patient have EncounterType in the list


Field Summary
 
Fields inherited from interface org.openmrs.logic.op.ComparisonOperator
AFTER, BEFORE, CONTAINS, EQUALS, GT, GTE, IN, LT, LTE, WITHIN
 
Fields inherited from interface org.openmrs.logic.op.Operator
AND, ASOF, AVERAGE, COUNT, DISTINCT, EXISTS, FIRST, LAST, NOT, NOT_EXISTS, OR
 
Constructor Summary
In()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

In

public In()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change