org.gcube.common.clients.fw.queries
Class StatelessQuery

java.lang.Object
  extended by org.gcube.common.clients.fw.queries.StatelessQuery
All Implemented Interfaces:
org.gcube.common.clients.queries.Query<EndpointReference>

public class StatelessQuery
extends Object
implements org.gcube.common.clients.queries.Query<EndpointReference>

A Query for stateless gCore services.

Author:
Fabio Simeoni

Constructor Summary
StatelessQuery(Plugin<?,?> plugin)
          Creates an instance with a given proxy Plugin.
 
Method Summary
 StatelessQuery addCondition(String condition)
          Adds a free-form condition on query results.
 StatelessQuery addNamespace(String prefix, URI uri)
          Adds a namespace to the query.
 StatelessQuery addVariable(String name, String range)
          Adds a variable to the query.
 boolean equals(Object obj)
           
 List<EndpointReference> fire()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatelessQuery

public StatelessQuery(Plugin<?,?> plugin)
Creates an instance with a given proxy Plugin.

Parameters:
plugin - the plugin
Method Detail

addVariable

public StatelessQuery addVariable(String name,
                                  String range)
Adds a variable to the query.

Parameters:
name - the name of the variable
range - the range of the variable
Returns:
the query
See Also:
SimpleQuery.addVariable(String, String)

addCondition

public StatelessQuery addCondition(String condition)
Adds a free-form condition on query results.

Parameters:
condition - the condition
Returns:
the query
See Also:
SimpleQuery.addCondition(String)

addNamespace

public StatelessQuery addNamespace(String prefix,
                                   URI uri)
Adds a namespace to the query.

Parameters:
prefix - the namespace prefix
uri - the namespace URI
Returns:
the query
See Also:
SimpleQuery.addNamespace(String, URI)

fire

public List<EndpointReference> fire()
                             throws org.gcube.common.clients.exceptions.DiscoveryException
Specified by:
fire in interface org.gcube.common.clients.queries.Query<EndpointReference>
Throws:
org.gcube.common.clients.exceptions.DiscoveryException

toString

public String toString()
Specified by:
toString in interface org.gcube.common.clients.queries.Query<EndpointReference>
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.gcube.common.clients.queries.Query<EndpointReference>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface org.gcube.common.clients.queries.Query<EndpointReference>
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.