com.unbxd.client.search.response.SearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbxd-java-sdk Show documentation
Show all versions of unbxd-java-sdk Show documentation
The project is a Unbxd Java Library
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);
}
}