org.omwg.mediation.mappingstore.query
Interface CompositeRestriction

All Known Implementing Classes:
MappingRestriction

public interface CompositeRestriction

CompositeRestriction represents a list of AND-ed Restrictions.


Method Summary
 void addRestriction(int restrictedField, Restriction r)
          This method add restriction to some attribute of the implemantation class.
 boolean admit(java.lang.Object o)
          Checks if given object complies with restrictions specified by the implementation class
 java.lang.String reduceToLuceneQuery()
           
 

Method Detail

admit

public boolean admit(java.lang.Object o)
Checks if given object complies with restrictions specified by the implementation class

Parameters:
o - given object
Returns:
True if the object complys with the restrictions, otherwise returns False.

addRestriction

public void addRestriction(int restrictedField,
                           Restriction r)
This method add restriction to some attribute of the implemantation class. The range of the first argument is set of values of class variables referring to the class attributes.

Parameters:
restrictedField - implicitly given field
r - given restriction

reduceToLuceneQuery

public java.lang.String reduceToLuceneQuery()