
com.unbxd.client.search.response.Facet 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
package com.unbxd.client.search.response;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: sourabh
* Date: 08/07/14
* Time: 11:02 AM
* To change this template use File | Settings | File Templates.
*/
public class Facet {
protected String name;
protected String _type;
protected Integer position;
protected String displayName;
protected List _facetEntries;
protected Facet(String facetName, Map params){
this.name = facetName;
this._type = (String) params.get("type");
if(params.containsKey("position")){
this.position = (Integer) params.get("position");
}else {
this.position = null;
}
if(params.containsKey("displayName")){
this.displayName = (String) params.get("displayName");
}else {
this.displayName = null;
}
if(params.get("values") instanceof Map){
Map map = (Map) params.get("values");
this.generateEntries((List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy