|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Selector<T>
A filter that accepts or rejects items from a collection.
| Nested Class Summary | |
|---|---|
static class |
Selector.AbstractSelector<T>
A baseclass for concrete selectors. |
| Field Summary | |
|---|---|
static java.util.List<java.lang.Object> |
NO_ARGS
|
static java.lang.String[] |
NO_PARAM_NAMES
|
| Method Summary | |
|---|---|
java.lang.String |
getItemName()
Returns the name used for the item that is being tested. |
java.lang.String[] |
getParamNames()
Returns the parameter names. |
boolean |
selects(T item,
java.lang.Object owner)
Returns true if the given item satisfies the selector's criteria. |
boolean |
selects(T item,
java.lang.Object owner,
java.util.List<java.lang.Object> args)
Returns true if the given item satisfies the selector's criteria. |
| Field Detail |
|---|
static final java.util.List<java.lang.Object> NO_ARGS
static final java.lang.String[] NO_PARAM_NAMES
| Method Detail |
|---|
java.lang.String getItemName()
java.lang.String[] getParamNames()
boolean selects(T item,
java.lang.Object owner)
item - the item to test.owner - the item's owner, i.e. the object from which items are being selected.
boolean selects(T item,
java.lang.Object owner,
java.util.List<java.lang.Object> args)
item - the item to test.owner - the item's owner, i.e. the object from which items are being selected.args - the arguments to be taken into account in the test. @return true if selection criteria are met.
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||