com.opensymphony.xwork2.config.entities
Class ResultConfig

java.lang.Object
  extended by com.opensymphony.xwork2.util.location.Located
      extended by com.opensymphony.xwork2.config.entities.ResultConfig
All Implemented Interfaces:
Parameterizable, Locatable, Serializable

public class ResultConfig
extends Located
implements Parameterizable, Serializable

Configuration for Result.

In the xml configuration file this is defined as the result tag.

Author:
Mike
See Also:
Serialized Form

Field Summary
private  String className
           
private  String name
           
private  Map params
           
 
Fields inherited from class com.opensymphony.xwork2.util.location.Located
location
 
Constructor Summary
ResultConfig()
           
ResultConfig(String name, String clazz)
           
ResultConfig(String name, String className, Map params)
           
 
Method Summary
 void addParam(String name, Object value)
           
 boolean equals(Object o)
           
 String getClassName()
           
 String getName()
           
 Map getParams()
           
 int hashCode()
           
 void setClassName(String className)
           
 void setName(String name)
           
 void setParams(Map params)
           
 
Methods inherited from class com.opensymphony.xwork2.util.location.Located
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

private Map params

className

private String className

name

private String name
Constructor Detail

ResultConfig

public ResultConfig()

ResultConfig

public ResultConfig(String name,
                    String clazz)

ResultConfig

public ResultConfig(String name,
                    String className,
                    Map params)
Method Detail

setClassName

public void setClassName(String className)

getClassName

public String getClassName()

setName

public void setName(String name)

getName

public String getName()

setParams

public void setParams(Map params)
Specified by:
setParams in interface Parameterizable

getParams

public Map getParams()
Specified by:
getParams in interface Parameterizable

addParam

public void addParam(String name,
                     Object value)
Specified by:
addParam in interface Parameterizable

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.