|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Targeter
Represents an object that can perform targeting operations based on some criteria. For example, a rule-based Targeter may use a set of targeting rules to traverse some search space and obtain a set of items matching the targeting rules. Other targeters may be based on different techniques, such as fuzzy matching, collaborative filtering, etc.
NameResolver
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static int |
NO_MAX_NUMBER
Indicates that no pMaxNumber has been specified |
static int |
NO_START_INDEX
Indicates that no pStartIndex has been specified |
Method Summary | |
---|---|
java.lang.Object[] |
target(NameResolver pNameResolver)
Performs a targeting operation, returning an array of "target" objects. |
java.lang.Object[] |
target(NameResolver pNameResolver,
int pMaxNumber)
Performs a targeting operation, returning an array of "target" objects containing at most pMaxNumber elements. |
java.lang.Object[] |
target(NameResolver pNameResolver,
int pStartIndex,
int pMaxNumber)
Performs a targeting operation, returning an array of "target" objects, beginning at the starting index of the entire result set, and containing at most pMaxNumber elements. |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
static final int NO_START_INDEX
static final int NO_MAX_NUMBER
Method Detail |
---|
java.lang.Object[] target(NameResolver pNameResolver) throws atg.targeting.TargetingException
Returns null if no items are found matching the targeting criteria.
TargetingException
- if a problem was encountered
during the targeting operationjava.lang.Object[] target(NameResolver pNameResolver, int pMaxNumber) throws atg.targeting.TargetingException
Returns null if no items are found matching the targeting criteria.
pMaxNumber
- the maximum number of elements to return;
if -1, the entire result set will be retrieved
TargetingException
- if a problem was encountered
during the targeting operationjava.lang.Object[] target(NameResolver pNameResolver, int pStartIndex, int pMaxNumber) throws atg.targeting.TargetingException
Returns null if no items are found matching the targeting criteria, or if the number of items found is smaller than the specified starting index.
pStartIndex
- the starting index; must be >= 0pMaxNumber
- the maximum number of elements to return;
if -1, the entire result set starting at index pStartIndex will
be retrieved
TargetingException
- if a problem was encountered
during the targeting operation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |