org.gcube.common.clients
Class LegacyQuery

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

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

A query for service endpoints published as GCoreEndpoints.

Author:
Fabio Simeoni

Constructor Summary
LegacyQuery(Plugin<?,?> plugin)
          Creates an instance with a given proxy Plugin.
 
Method Summary
 LegacyQuery addCondition(String condition)
          Adds a free-form condition on query results.
 LegacyQuery addNamespace(String prefix, URI uri)
          Adds a namespace to the query.
 LegacyQuery 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

LegacyQuery

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

Parameters:
plugin - the plugin
Method Detail

addVariable

public LegacyQuery 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 LegacyQuery 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 LegacyQuery 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 © 2014. All Rights Reserved.