org.omwg.mediation.mappingstore.query
Class ListRestriction

java.lang.Object
  extended byorg.omwg.mediation.mappingstore.query.ListRestriction
All Implemented Interfaces:
Restriction

public class ListRestriction
extends java.lang.Object
implements Restriction

List restriction


Constructor Summary
ListRestriction(java.util.List l)
          Constructs basic restriction by list of objects.
 
Method Summary
 boolean admit(java.lang.Object o)
          This method is speciifed by Restriction Interface
 java.lang.String reduceToLuceneQuery(java.lang.String field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListRestriction

public ListRestriction(java.util.List l)
Constructs basic restriction by list of objects. The restriction is in the sense of inclusion.

Parameters:
l - given list of objects
Method Detail

admit

public boolean admit(java.lang.Object o)
This method is speciifed by Restriction Interface

Specified by:
admit in interface Restriction
Parameters:
o - given object of type List
Returns:
True if the List satisfies the restrictions, otherwise returns False.

reduceToLuceneQuery

public java.lang.String reduceToLuceneQuery(java.lang.String field)
Specified by:
reduceToLuceneQuery in interface Restriction