com.imsweb.seerapi.client.disease.DiseaseSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of seerapi-client-java Show documentation
Show all versions of seerapi-client-java Show documentation
API mapping for SEER*API in Java
/*
* Copyright (C) 2014 Information Management Services, Inc.
*/
package com.imsweb.seerapi.client.disease;
import java.util.Map;
import com.imsweb.seerapi.client.disease.Disease.Type;
import com.imsweb.seerapi.client.publishable.PublishableSearch;
public class DiseaseSearch extends PublishableSearch {
/**
* Disease-specific search parameters
*/
private Type _type;
private String _siteCategory;
public DiseaseSearch() {
super();
}
public DiseaseSearch(String query) {
super();
setQuery(query);
}
public DiseaseSearch(String query, Type type) {
super();
setQuery(query);
setType(type);
}
public Type getType() {
return _type;
}
public void setType(Type type) {
_type = type;
}
public String getSiteCategory() {
return _siteCategory;
}
public void setSiteCategory(String siteCategory) {
_siteCategory = siteCategory;
}
@Override
public Map paramMap() {
Map params = super.paramMap();
if (getType() != null)
params.put("type", getType().toString());
if (getSiteCategory() != null)
params.put("site_category", getSiteCategory());
return params;
}
}