|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.query.targetedXPath.BaseTargetedXPathExpressionEvaluator
public abstract class BaseTargetedXPathExpressionEvaluator
Abstract base class used for TargetedXPath implementations. Peforms basic argument sanity checking for derived classes.
| Field Summary | |
|---|---|
private static java.lang.String[] |
DIALECTS
|
private int |
enumDuration
|
private int |
enumPersistenceSize
|
private static org.globus.util.I18n |
i18n
|
(package private) static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
BaseTargetedXPathExpressionEvaluator()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluate(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
Evaluates the expression over a ResourcePropertySet and returns the result. |
protected abstract java.util.List |
evaluateQuery(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
|
protected java.util.List |
getAsEnumeration(java.util.List results)
|
java.lang.String[] |
getDialects()
Gets the list of dialects that this evaluator can handle. |
int |
getEnumerationDuration()
|
int |
getEnumerationPersistenceSize()
|
protected static org.w3c.dom.Element |
getNamespaceRoot(NamespaceMappingType[] mappings,
org.w3c.dom.Element element)
|
void |
setEnumerationDuration(int duration)
Sets the duration of the enumeration. |
void |
setEnumerationPersistenceSize(int size)
Sets the size of the query result after which the results will be persisted to a file (only when the query result is returned as an enumeration). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private static final java.lang.String[] DIALECTS
private int enumDuration
private int enumPersistenceSize
| Constructor Detail |
|---|
public BaseTargetedXPathExpressionEvaluator()
| Method Detail |
|---|
public void setEnumerationPersistenceSize(int size)
size - the size of the query result after which the results
will be persisted to a file.public int getEnumerationPersistenceSize()
public void setEnumerationDuration(int duration)
duration - the duration of the enumeration in minutes.
If zero the enumeration will not expire.public int getEnumerationDuration()
public java.lang.String[] getDialects()
ExpressionEvaluator
getDialects in interface ExpressionEvaluator
public java.lang.Object evaluate(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
throws UnsupportedQueryDialectException,
QueryEvaluationException,
InvalidQueryExpressionException,
QueryException
ExpressionEvaluator
evaluate in interface ExpressionEvaluatorexpression - object passed by client representing query expression.resourcePropertySet - ResourcePropertySet associated with resource.
The expression is evaluated against this set.
SOAPElment or
DOM Element.
If the result object returned is null an empty query result
is returned.
UnsupportedQueryDialectException - if query dialect is
unsupported.
QueryEvaluationException - if query evaluation fails.
InvalidQueryExpressionException - if query expression is invalid.
QueryException - if any other error
protected abstract java.util.List evaluateQuery(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
throws java.lang.Exception
java.lang.Exception
protected static org.w3c.dom.Element getNamespaceRoot(NamespaceMappingType[] mappings,
org.w3c.dom.Element element)
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
protected java.util.List getAsEnumeration(java.util.List results)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||