org.japano.action
Class Parametrized

java.lang.Object
  extended by org.japano.action.Parametrized
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionMapping, Bean

public abstract class Parametrized
extends java.lang.Object
implements java.io.Serializable

Abstract base class for classes which are parametrized by HTML parameters.

Version:
$Id: Parametrized.java,v 1.4 2005/09/27 21:30:50 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )
See Also:
Serialized Form

Field Summary
protected  java.lang.Class klass
          Contains the class type.
protected  java.util.List parameters
          Contains all parameters.
 
Constructor Summary
Parametrized()
           
 
Method Summary
 void addParameter(Parameter parameter)
          Adds a given parameter to the parameter list after removing all parameters with the same name.
abstract  ActionMapping getActionMapping()
           
 Parameter getParameter(java.lang.String name)
          Returns the parameter with the given name
 int getParameterCount()
           
 java.lang.Class getParametrizedClass()
           
 java.util.Iterator parameters()
          Returns an Iterator over all parameters in this action mapping.
 void removeParameter(java.lang.String name)
          Removes all parameters with the given name.
 void setParametrizedClass(java.lang.String klass)
          Setter for property actionClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

protected java.util.List parameters
Contains all parameters.


klass

protected java.lang.Class klass
Contains the class type.

Constructor Detail

Parametrized

public Parametrized()
Method Detail

setParametrizedClass

public void setParametrizedClass(java.lang.String klass)
Setter for property actionClass.

Parameters:
klass - Name of the parametrized

getParametrizedClass

public java.lang.Class getParametrizedClass()

addParameter

public void addParameter(Parameter parameter)
Adds a given parameter to the parameter list after removing all parameters with the same name.

Parameters:
parameter - Parameter

removeParameter

public void removeParameter(java.lang.String name)
Removes all parameters with the given name.

Parameters:
name - parameter name

parameters

public java.util.Iterator parameters()
Returns an Iterator over all parameters in this action mapping.

Returns:
Iterator

getParameter

public Parameter getParameter(java.lang.String name)
Returns the parameter with the given name

Parameters:
name -
Returns:
parameter

getParameterCount

public int getParameterCount()

getActionMapping

public abstract ActionMapping getActionMapping()