|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractBean
org.vizzini.ai.logic.Filter
public class Filter
Provides a filter for the logic system.
Field Summary | |
---|---|
static IFilter |
NONE
None filter. |
Fields inherited from class org.vizzini.util.AbstractBean |
---|
IGNORE_PROPERTIES |
Constructor Summary | |
---|---|
Filter()
Construct this object. |
|
Filter(ISentence sentence)
Construct this object with the given parameter. |
|
Filter(String name)
Construct this object with the given parameter. |
|
Filter(String name,
ISentence sentence)
Construct this object with the given parameter. |
Method Summary | |
---|---|
Object |
clone()
Return a clone of this instance. |
List |
fails(List objects)
Return the subset of the given list of objects which fail this filter. |
boolean |
fails(Object object)
Return true if the given object fails this filter. |
boolean |
failsAll(List objects)
Return true if all the objects in the given list fail this filter. |
boolean |
failsOne(List objects)
Return true if at least one of the objects in the given list fail this filter. |
String |
getName()
|
ISentence |
getSentence()
|
List |
passes(List objects)
Return the subset of the given list of objects which pass this filter. |
boolean |
passes(Object object)
Return true if the given object passes this filter. |
boolean |
passesAll(List objects)
Return true if all the objects in the given list pass this filter. |
boolean |
passesOne(List objects)
Return true if at least one of the objects in the given list pass this filter. |
void |
setName(String name)
|
void |
setSentence(ISentence sentence)
|
Methods inherited from class org.vizzini.util.AbstractBean |
---|
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, equals, getIgnoreProperties, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.vizzini.ai.logic.IFilter |
---|
toString |
Field Detail |
---|
public static final IFilter NONE
Constructor Detail |
---|
public Filter()
public Filter(String name)
public Filter(ISentence sentence)
public Filter(String name, ISentence sentence)
Method Detail |
---|
public Object clone()
clone
in interface IFilter
clone
in class Object
public boolean fails(Object object)
fails
in interface IFilter
public List fails(List objects)
fails
in interface IFilter
public boolean failsAll(List objects)
failsAll
in interface IFilter
public boolean failsOne(List objects)
failsOne
in interface IFilter
public String getName()
getName
in interface IFilter
public ISentence getSentence()
getSentence
in interface IFilter
public boolean passes(Object object)
passes
in interface IFilter
public List passes(List objects)
passes
in interface IFilter
public boolean passesAll(List objects)
passesAll
in interface IFilter
public boolean passesOne(List objects)
passesOne
in interface IFilter
public void setName(String name)
setName
in interface IFilter
name
- The name to set.public void setSentence(ISentence sentence)
setSentence
in interface IFilter
sentence
- The sentence to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |