com.imsweb.seerapi.client.rx.RxSearch 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) 2012 Information Management Services, Inc.
*/
package com.imsweb.seerapi.client.rx;
import java.util.Map;
import com.imsweb.seerapi.client.publishable.PublishableSearch;
import com.imsweb.seerapi.client.rx.Rx.DoNoCodeValue;
import com.imsweb.seerapi.client.rx.Rx.Type;
public class RxSearch extends PublishableSearch {
/**
* RX-specific
*/
private Type _type;
private DoNoCodeValue _doNotCode;
public RxSearch() {
super();
}
public RxSearch(String query) {
setQuery(query);
}
public RxSearch(String query, Type type) {
setQuery(query);
setType(type);
}
public Type getType() {
return _type;
}
public void setType(Type type) {
_type = type;
}
public DoNoCodeValue getDoNotCode() {
return _doNotCode;
}
public void setDoNotCode(DoNoCodeValue doNotCode) {
_doNotCode = doNotCode;
}
@Override
public Map paramMap() {
Map params = super.paramMap();
if (getType() != null)
params.put("type", getType().toString());
if (getDoNotCode() != null)
params.put("do_not_code", getDoNotCode().toString());
return params;
}
}