Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 import java.util.Map;
 
 public class ResolveQuery {

  
Holds all parameters for this ResolveQuery.
 
  private final Parameters queryParams = new Parameters();
  
  public ResolveQuery add(String keyObject val) {
    return this;
  }
  
  
When this is called before running the query, Resolve will return all potential candidates for resolution and meta-data regarding resolution quality.
  public ResolveQuery allCandidates() {
	  debug(true);
	  return this;
  }
  
  
Whether to turn on debug for this Resolve query. When debug is turned on, Resolve will return all potential candidates for resolution and meta-data regarding resolution quality. When debug is turned off (the default), Resolve returns 0 results (meaning no match), or 1 result (meaning that was the unequivocal match).
  public ResolveQuery debug(boolean dbg) {
    if(dbg) {
	  .setParam("debug"true);
    } else {
      .unsetParam("debug");
    }
    return this;
  }
  protected Map<StringObjecttoUrlParams() {
    return .toUrlParams();
  }
  protected String toUrlQuery() {
    return UrlUtil.toUrlQuery(toUrlParams());
  }
New to GrepCode? Check out our FAQ X