|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ogsa.utils.QueryHelper
Helper class used to create query expressions for the
findServiceData
and
setServiceData
operations.
Constructor Summary | |
QueryHelper()
|
Method Summary | |
static ExtensibilityType |
getDeleteNamesQuery(javax.xml.namespace.QName[] qnames)
Creates a deleteByServiceDataNames query expression. |
static ExtensibilityType |
getNamesQuery(javax.xml.namespace.QName qname)
Creates a queryByServiceDataNames query expression. |
static ExtensibilityType |
getNamesQuery(javax.xml.namespace.QName[] qnames)
Creates a queryByServiceDataNames query expression. |
static ExtensibilityType |
getNamesQuery(java.lang.String localName)
Creates a queryByServiceDataNames query expression. |
static ExtensibilityType |
getQNamesQuery(javax.xml.namespace.QName[] qnames,
javax.xml.namespace.QName expression)
Creates a query expression containing qnames. |
static QueryEngine |
getQueryEngine(java.lang.String engineClass)
|
static ExtensibilityType |
getSetNamesQuery(ServiceData[] serviceData)
creates a setByServiceDataNames expression based on the ServiceData elements being passed as input. |
static ExtensibilityType |
getSetNamesQuery(java.lang.String file)
creates a setServiceData expression based on the content of the input file. |
static ExtensibilityType |
getXPathQuery(javax.xml.namespace.QName qname,
java.lang.String XPathExpr,
java.lang.String[] namespaces)
Same as getXPathQuery but allows you to specify the fully qualified
name of the service data name to serve as basis for the query. |
static ExtensibilityType |
getXPathQuery(java.lang.String name,
java.lang.String XPathExpr,
java.lang.String[] namespaces)
Creates a globus subscribeByXPath expression |
static void |
registerEvaluators(QueryEngine queryEngine,
java.lang.String evaluators)
|
static java.lang.String[] |
tokenizeNamespaces(java.lang.String namespacesString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryHelper()
Method Detail |
public static ExtensibilityType getSetNamesQuery(java.lang.String file) throws GridServiceException
GridServiceException
GridService.setServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getSetNamesQuery(ServiceData[] serviceData) throws GridServiceException
GridServiceException
GridService.setServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getNamesQuery(java.lang.String localName) throws GridServiceException
localName
- local name of service data element to query.
GridServiceException
GridService.findServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getNamesQuery(javax.xml.namespace.QName qname) throws GridServiceException
qname
- name of service data element to query.
GridServiceException
GridService.findServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getNamesQuery(javax.xml.namespace.QName[] qnames) throws GridServiceException
qnames
- names of service data elements to query.
GridServiceException
GridService.findServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getDeleteNamesQuery(javax.xml.namespace.QName[] qnames) throws GridServiceException
qnames
- names of service data elements to delete.
GridServiceException
GridService.setServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getQNamesQuery(javax.xml.namespace.QName[] qnames, javax.xml.namespace.QName expression) throws GridServiceException
qnames
- names of service data elements to query.expression
- expression qname to use for the query.
GridServiceException
GridService.setServiceData(org.gridforum.ogsi.ExtensibilityType)
,
GridService.findServiceData(org.gridforum.ogsi.ExtensibilityType)
public static ExtensibilityType getXPathQuery(java.lang.String name, java.lang.String XPathExpr, java.lang.String[] namespaces) throws GridServiceException
name
- name of service data to use as basis for searchXPathExpr
- XPath expresstion to apply to service datanamespaces
- XPath requires that the client provides a namespace
mapping for every node in the query scope that has a corresponding
namespace attribute. In the current implementation, this is provided
via an array of Strings of the form "xmlns:="
.
For example:
xmlns:gsdl=http://www.gridforum.org/namespaces/2003/03/OGSI
GridServiceException
public static ExtensibilityType getXPathQuery(javax.xml.namespace.QName qname, java.lang.String XPathExpr, java.lang.String[] namespaces) throws GridServiceException
getXPathQuery
but allows you to specify the fully qualified
name of the service data name to serve as basis for the query.
GridServiceException
public static java.lang.String[] tokenizeNamespaces(java.lang.String namespacesString)
public static QueryEngine getQueryEngine(java.lang.String engineClass) throws GridServiceException
GridServiceException
public static void registerEvaluators(QueryEngine queryEngine, java.lang.String evaluators) throws GridServiceException
GridServiceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |