com.ltu.smd116.beans
Class SearchBean


public class SearchBean

The SearchBean class

Author:
Anna Nilsson

Constructor Summary
SearchBean()
          The constructor

Method Summary
 StringgetCategory()
          gets the category thats already been set.
 SortedVectorgetresults()
           
 StringgetSearch()
          Gets the bean that is already set.
 intgetSort()
          gets the Sort thats already been set.
 voidsetCategory(String str)
          Set the category.
 voidsetSearch(String s)
          set which bean to search.
 voidsetSort(int sort)
          Set the Sort.

Constructor Detail

SearchBean

public SearchBean()
The constructor
Method Detail

getCategory

public String getCategory()
gets the category thats already been set.
Returns: the name of the category.

getresults

public SortedVector getresults()
Returns: the SortedVector.

getSearch

public String getSearch()
Gets the bean that is already set.
Returns: the name of the bean

getSort

public int getSort()
gets the Sort thats already been set.
Returns: the name of the Sort.

setCategory

public void setCategory(String str)
Set the category.
Parameters:
str - the name of the category.

setSearch

public void setSearch(String s)
set which bean to search.
Parameters:
s - the name of the bean.

setSort

public void setSort(int sort)
Set the Sort.
Parameters:
sort - the name of the Sort.