|
||||||||||
| 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 IFilterclone in class Objectpublic boolean fails(Object object)
fails in interface IFilterpublic List fails(List objects)
fails in interface IFilterpublic boolean failsAll(List objects)
failsAll in interface IFilterpublic boolean failsOne(List objects)
failsOne in interface IFilterpublic String getName()
getName in interface IFilterpublic ISentence getSentence()
getSentence in interface IFilterpublic boolean passes(Object object)
passes in interface IFilterpublic List passes(List objects)
passes in interface IFilterpublic boolean passesAll(List objects)
passesAll in interface IFilterpublic boolean passesOne(List objects)
passesOne in interface IFilterpublic void setName(String name)
setName in interface IFiltername - The name to set.public void setSentence(ISentence sentence)
setSentence in interface IFiltersentence - 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 |