org.pentaho.reporting.engine.classic.core
Class ParameterMapping

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.ParameterMapping
All Implemented Interfaces:
Serializable

public class ParameterMapping
extends Object
implements Serializable

A parameter mapping defines an aliasing rule for incoming and outgoing sub-report parameters.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ParameterMapping(String name, String alias)
          Creates a new parameter mapping for the given parameter.
 
Method Summary
 boolean equals(Object o)
           
 String getAlias()
          Returns the alias parameter name.
 String getName()
          Returns the source parameter name.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterMapping

public ParameterMapping(String name,
                        String alias)
Creates a new parameter mapping for the given parameter. The parameter will be made available using the given 'alias' name. If the alias is null, the name will not be changed during the mapping.

Parameters:
name - the name.
alias - the alias (can be null).
Method Detail

getName

public String getName()
Returns the source parameter name.

Returns:
the source name.

getAlias

public String getAlias()
Returns the alias parameter name.

Returns:
the alias name.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object