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

java.lang.Object
  extended by org.shapelogic.filter.BaseFilter<BaseClass,Element>
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<BaseClass,Element>
Direct Known Subclasses:
AllFilter, AndFilter, DynamicBaseFilter, NotFilter, OrFilter, PolygonLineFilter, PolygonPointFilter

public abstract class BaseFilter<BaseClass,Element>
extends java.lang.Object
implements IFilter<BaseClass,Element>

Author:
Sami Badawi

Field Summary
protected  java.util.Collection<Element> _collection
           
protected  java.lang.Object _constraint
           
protected  BaseClass _parent
           
 
Constructor Summary
BaseFilter()
           
 
Method Summary
abstract  boolean evaluate(java.lang.Object arg0)
           
 java.util.Collection<Element> filter()
           
 java.util.Collection<Element> getCollection()
           
 java.lang.Object getConstraint()
          Deprecated. 
 BaseClass getParent()
           
 void setCollection(java.util.Collection<Element> collection)
           
 void setConstraint(java.lang.Object constraint)
           
 void setParent(BaseClass parent)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_collection

protected java.util.Collection<Element> _collection

_parent

protected BaseClass _parent

_constraint

protected java.lang.Object _constraint
Constructor Detail

BaseFilter

public BaseFilter()
Method Detail

getCollection

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

getParent

public BaseClass getParent()
Specified by:
getParent in interface IFilter<BaseClass,Element>

setCollection

public void setCollection(java.util.Collection<Element> collection)
Specified by:
setCollection in interface IFilter<BaseClass,Element>

setParent

public void setParent(BaseClass parent)
Specified by:
setParent in interface IFilter<BaseClass,Element>

evaluate

public abstract boolean evaluate(java.lang.Object arg0)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

filter

public java.util.Collection<Element> filter()
Specified by:
filter in interface IFilter<BaseClass,Element>

getConstraint

@Deprecated
public java.lang.Object getConstraint()
Deprecated. 

Specified by:
getConstraint in interface IFilter<BaseClass,Element>

setConstraint

public void setConstraint(java.lang.Object constraint)
Specified by:
setConstraint in interface IFilter<BaseClass,Element>

setup

public void setup()
           throws java.lang.Exception
Specified by:
setup in interface IFilter<BaseClass,Element>
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.