|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Evaluator
This interface defines an object that can interrogate a raw value to determine if it references other values and provide information about those references. Most importantly, it can translate a raw value into a fully evaluated value.
Method Summary | |
---|---|
String |
evaluate(String rawValue,
Retriever retriever)
Transform the given raw value into a fully evaluated value (including recursively nested references). |
List<Reference> |
getReferences(String rawValue,
Retriever retriever)
Get a list of references contained within the given raw value. |
boolean |
isReferencing(String rawValue,
String name,
Retriever retriever)
Determine whether or not the given raw value references another value by name. |
Reference |
referenceAt(String rawValue,
int position,
Retriever retriever)
Retrieve the reference at the specified location, if one exists. |
Method Detail |
---|
String evaluate(String rawValue, Retriever retriever)
rawValue
- the raw value, which may contain references to other valuesretriever
- the retriever used to obtain the values of referenced properties
Reference referenceAt(String rawValue, int position, Retriever retriever)
rawValue
- the raw value that may or may not contain a referenceposition
- the position at which to look for a reference - this does not need to be
the beginning of the reference or any other particular position relative
to the reference, if a reference exists that contains this location in
the raw value, it will be returnedretriever
- the Retriever
used to get the value of the reference, if one is
found
null
otherwiseboolean isReferencing(String rawValue, String name, Retriever retriever)
rawValue
- the raw value to searchname
- the name of the reference to findretriever
- the Retriever
instance used to convert references to values for
recursive searching
true
if a reference with the given name is found;
false
otherwiseList<Reference> getReferences(String rawValue, Retriever retriever)
Reference
contains a list of sub-references found
within its value, so a recursive listing is obtainable.
rawValue
- the raw value to search for referencesretriever
- the Retriever
instance used to convert references to values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |