// Path: src/main/java/com/codefork/refine/resources/NameType.java
// public class NameType {
// 
//     private String id;
//     private String name;
// 
//     public NameType(String id, String name) {
//         this.id = id;
//         this.name = name;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         if(obj instanceof NameType) {
//             NameType obj2 = (NameType) obj;
//             return obj2.getId().equals(getId())
//                     && obj2.getName().equals(getName());
//         }
//         return false;
//     }
// }


import com.codefork.refine.resources.NameType;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

package com.codefork.refine;



/**
 * Represents a single query in a request sent by Open Refine.
 * For the JSON format of this query, see
 * https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation-Service-API
 *
 * There's not much documentation about the type_strict field:
 * when it's set, it's always "should" although the docs say there
 * are other possible values.
 */
public class SearchQuery {

    private String query;
    private int limit;
// Path: src/main/java/com/codefork/refine/resources/NameType.java
// public class NameType {
// 
//     private String id;
//     private String name;
// 
//     public NameType(String id, String name) {
//         this.id = id;
//         this.name = name;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         if(obj instanceof NameType) {
//             NameType obj2 = (NameType) obj;
//             return obj2.getId().equals(getId())
//                     && obj2.getName().equals(getName());
//         }
//         return false;
//     }
// }


// Path: src/main/java/com/codefork/refine/SearchQuery.java
import com.codefork.refine.resources.NameType;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;


package com.codefork.refine;



/**
 * Represents a single query in a request sent by Open Refine.
 * For the JSON format of this query, see
 * https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation-Service-API
 *
 * There's not much documentation about the type_strict field:
 * when it's set, it's always "should" although the docs say there
 * are other possible values.
 */
public class SearchQuery {

    private String query;
    private int limit;
    private NameType nameType;