org.ow2.weblab.portlet.bean
Class Facet

java.lang.Object
  extended by 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

Nested Class Summary
static class Facet.FacetComparator
          Default comparator based on label
 
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)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getCount()
           
 java.lang.String getFilterQuery()
           
 java.lang.String getLabel()
           
 org.ow2.weblab.core.model.Query getQuery()
           
 int hashCode()
           
 void setCount(int count)
           
 void setFilterQuery(java.lang.String filterQuery)
           
 void setLabel(java.lang.String label)
           
 void setQuery(org.ow2.weblab.core.model.Query query)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Facet

public Facet()

Facet

public Facet(java.lang.String label,
             int count,
             org.ow2.weblab.core.model.Query facetQuery)
Method Detail

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.