com.factual.driver
Class CrosswalkQuery

java.lang.Object
  extended by com.factual.driver.CrosswalkQuery

public class CrosswalkQuery
extends Object

Represents a Factual Crosswalk query.

Author:
aaron

Constructor Summary
CrosswalkQuery()
           
 
Method Summary
 CrosswalkQuery factualId(String factualId)
          Adds the specified Factual ID to this Query.
 CrosswalkQuery limit(int limit)
          Adds the specified limit to this Query.
 CrosswalkQuery namespace(String namespace)
          The namespace to search for a third party ID within.
 CrosswalkQuery namespaceId(String namespaceId)
          The id used by a third party to identify a place.
 CrosswalkQuery only(String... namespaces)
          Restricts the results to only return ids for the specified namespace(s).
protected  String toUrlQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrosswalkQuery

public CrosswalkQuery()
Method Detail

factualId

public CrosswalkQuery factualId(String factualId)
Adds the specified Factual ID to this Query. Returned Crosswalk data will be for only the entity associated with the Factual ID.

Parameters:
factualId - a unique Factual ID.
Returns:
this CrosswalkQuery

limit

public CrosswalkQuery limit(int limit)
Adds the specified limit to this Query. The amount of returned Crosswalk records will not exceed this limit.

Parameters:
factualId - a unique Factual ID.
Returns:
this CrosswalkQuery

namespace

public CrosswalkQuery namespace(String namespace)
The namespace to search for a third party ID within.

Parameters:
namespace - The namespace to search for a third party ID within.
Returns:
this CrosswalkQuery

namespaceId

public CrosswalkQuery namespaceId(String namespaceId)
The id used by a third party to identify a place.

You must also supply namespace via namespace(String).

Parameters:
namespaceId - The id used by a third party to identify a place.
Returns:
this CrosswalkQuery

only

public CrosswalkQuery only(String... namespaces)
Restricts the results to only return ids for the specified namespace(s).

Returns:
this CrosswalkQuery

toUrlQuery

protected String toUrlQuery()


Copyright © 2012. All Rights Reserved.