All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.imsweb.seerapi.client.rx.RxSearch Maven / Gradle / Ivy

There is a newer version: 5.7
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy