org.openmdx.base.accessor.generic.spi
Class ObjectFilter_1

java.lang.Object
  extended by org.openmdx.compatibility.base.query.AbstractFilter
      extended by org.openmdx.compatibility.base.query.ModelAwareFilter
          extended by org.openmdx.base.accessor.generic.spi.ObjectFilter_1
All Implemented Interfaces:
Serializable, Selector, ModelHolder_1_0

public class ObjectFilter_1
extends ModelAwareFilter

Object Filter

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmdx.compatibility.base.query.ModelAwareFilter
model
 
Fields inherited from class org.openmdx.compatibility.base.query.AbstractFilter
filter
 
Constructor Summary
ObjectFilter_1(FilterProperty[] filter)
          Constructor for a sub-class unaware filter
ObjectFilter_1(Model_1_0 model, FilterProperty[] filter)
          Constructor for a sub-class aware filter
 
Method Summary
 boolean accept(Object candidate)
          Tests whether the candidate is accepted by the selection
protected  Iterator getValues(Object candidate, String attribute)
           
 
Methods inherited from class org.openmdx.compatibility.base.query.ModelAwareFilter
getModel, newInstanceOfIterator, setModel
 
Methods inherited from class org.openmdx.compatibility.base.query.AbstractFilter
getDelegate, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectFilter_1

public ObjectFilter_1(Model_1_0 model,
                      FilterProperty[] filter)
Constructor for a sub-class aware filter

Parameters:
model -
filter -
Throws:
BadParameterException - in case of an invalid filter property set
NullPointerException - if the filter is null

ObjectFilter_1

public ObjectFilter_1(FilterProperty[] filter)
Constructor for a sub-class unaware filter

Parameters:
filter -
Throws:
BadParameterException - in case of an invalid filter property set
NullPointerException - if the filter is null
Method Detail

getValues

protected Iterator getValues(Object candidate,
                             String attribute)
Specified by:
getValues in class AbstractFilter
Returns:
an iterator for the values or null in case of failure

accept

public boolean accept(Object candidate)
Description copied from interface: Selector
Tests whether the candidate is accepted by the selection

Specified by:
accept in interface Selector
Overrides:
accept in class AbstractFilter
Returns:
true if the candidate mathces the selction criteria


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.