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

com.unbxd.client.autosuggest.response.AutoSuggestResult Maven / Gradle / Ivy

package com.unbxd.client.autosuggest.response;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sourabh
 * Date: 08/07/14
 * Time: 5:37 PM
 * To change this template use File | Settings | File Templates.
 */
public class AutoSuggestResult {

    private Map _attributes;

    protected AutoSuggestResult(Map params) {
        this._attributes = params;
    }

    /**
     * @return Attributes of the product
     */
    public Map getAttributes(){
        return this._attributes;
    }

    /**
     * @param fieldName
     * @return Attribute of the product for given field name
     */
    public Object getAttribute(String fieldName){
        return this._attributes.get(fieldName);
    }

    /**
     * @return Get Suggestion
     */
    public String getSuggestion(){
        return (String) this.getAttribute("autosuggest");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy