org.ow2.weblab.portlet.bean
Class Facet
java.lang.Object
org.ow2.weblab.portlet.bean.Facet
public class Facet
- extends java.lang.Object
Simple bean that holds information linked to a facet : its label; its count
of results when applied as filter and the Query to be launched if selected.
- Author:
- gdupont - WebLab team ; CASSIDIAN, an EADS company
- Date:
- 2011 WebLab model 1.2
|
Field Summary |
protected int |
count
|
protected java.lang.String |
filterQuery
|
protected java.lang.String |
label
|
protected org.ow2.weblab.core.model.Query |
query
|
|
Constructor Summary |
Facet()
|
Facet(java.lang.String label,
int count,
org.ow2.weblab.core.model.Query facetQuery)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
label
protected java.lang.String label
count
protected int count
filterQuery
protected java.lang.String filterQuery
query
protected org.ow2.weblab.core.model.Query query
Facet
public Facet()
Facet
public Facet(java.lang.String label,
int count,
org.ow2.weblab.core.model.Query facetQuery)
getLabel
public java.lang.String getLabel()
- Returns:
- the label
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label - the label to set
getCount
public int getCount()
- Returns:
- the count
setCount
public void setCount(int count)
- Parameters:
count - the count to set
getFilterQuery
public java.lang.String getFilterQuery()
- Returns:
- the filterQuery
setFilterQuery
public void setFilterQuery(java.lang.String filterQuery)
- Parameters:
filterQuery - the filterQuery to set
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getQuery
public org.ow2.weblab.core.model.Query getQuery()
setQuery
public void setQuery(org.ow2.weblab.core.model.Query query)
Copyright © 2004-2012. All Rights Reserved.