org.shapelogic.filter
Class DynamicBaseFilter<BaseClass,Element>

java.lang.Object
  extended by org.shapelogic.filter.BaseFilter<BaseClass,Element>
      extended by org.shapelogic.filter.DynamicBaseFilter<BaseClass,Element>
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<BaseClass,Element>

public class DynamicBaseFilter<BaseClass,Element>
extends BaseFilter<BaseClass,Element>

Author:
Sami Badawi

Field Summary
protected  java.lang.String _collectionExpression
           
protected  java.lang.String _criteriaExpression
           
 
Fields inherited from class org.shapelogic.filter.BaseFilter
_collection, _constraint, _parent
 
Constructor Summary
DynamicBaseFilter(java.lang.String criteriaExpression, java.lang.String collectionExpression)
           
 
Method Summary
 boolean evaluate(java.lang.Object arg0)
           
 java.util.Collection<Element> getCollection()
           
 
Methods inherited from class org.shapelogic.filter.BaseFilter
filter, getConstraint, getParent, setCollection, setConstraint, setParent, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_criteriaExpression

protected java.lang.String _criteriaExpression

_collectionExpression

protected java.lang.String _collectionExpression
Constructor Detail

DynamicBaseFilter

public DynamicBaseFilter(java.lang.String criteriaExpression,
                         java.lang.String collectionExpression)
Method Detail

getCollection

public java.util.Collection<Element> getCollection()
Specified by:
getCollection in interface IFilter<BaseClass,Element>
Overrides:
getCollection in class BaseFilter<BaseClass,Element>

evaluate

public boolean evaluate(java.lang.Object arg0)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate
Specified by:
evaluate in class BaseFilter<BaseClass,Element>


Copyright © 2009. All Rights Reserved.