Class 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 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
      • 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