com.opencms.defaults
Class CmsFilterMethod

java.lang.Object
  |
  +--com.opencms.defaults.CmsFilterMethod

public class CmsFilterMethod
extends Object

Insert the type's description here. Creation date: (08.11.00 12:02:57)

Author:
Michael Knoll

Constructor Summary
CmsFilterMethod(String filterName, Method filterMethod, Object[] filterParameters)
          FilterMethod constructor
CmsFilterMethod(String filterName, Method filterMethod, Object[] filterParameters, String defaultFilterParam)
          FilterMethod constructor with a default value in the Selectbox
 
Method Summary
 String getDefaultFilterParam()
           
 Object[] getDefaultParameter()
          gets the default parameter
 Method getFilterMethod()
          gets the filter method
 String getFilterName()
          gets the filtername
 boolean hasUserParameter()
          Returns, if this filter needs additional user parameter.
 void setDefaultParameter(Object[] parameter)
          sets the filter parameter
 void setFilterMethod(Method method)
          sets the filter method
 void setFilterName(String name)
          sets the filter name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsFilterMethod

public CmsFilterMethod(String filterName,
                       Method filterMethod,
                       Object[] filterParameters)
FilterMethod constructor


CmsFilterMethod

public CmsFilterMethod(String filterName,
                       Method filterMethod,
                       Object[] filterParameters,
                       String defaultFilterParam)
FilterMethod constructor with a default value in the Selectbox

Method Detail

getDefaultParameter

public Object[] getDefaultParameter()
gets the default parameter


getFilterMethod

public Method getFilterMethod()
gets the filter method


getFilterName

public String getFilterName()
gets the filtername


hasUserParameter

public boolean hasUserParameter()
Returns, if this filter needs additional user parameter.

Returns:
true if this filter needs additional user paramet. Otherwise return false.

setDefaultParameter

public void setDefaultParameter(Object[] parameter)
sets the filter parameter

Parameters:
parameter - the filter parameter

setFilterMethod

public void setFilterMethod(Method method)
sets the filter method

Parameters:
method - the filter method

setFilterName

public void setFilterName(String name)
sets the filter name

Parameters:
name - the filter name

getDefaultFilterParam

public String getDefaultFilterParam()