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

com.unbxd.client.search.response.SearchResult Maven / Gradle / Ivy

The newest version!
package com.unbxd.client.search.response;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sourabh
 * Date: 08/07/14
 * Time: 11:00 AM
 * To change this template use File | Settings | File Templates.
 */
public class SearchResult {

    private String _uniqueId;
    private Map _attributes;

    protected SearchResult(Map product){
        this._attributes = product;
        this._uniqueId = (String) _attributes.get("uniqueId");
    }

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

    /**
     * @return Unique Id of the product
     */
    public String getUniqueId(){
        return this._uniqueId;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy