com.opensymphony.xwork2.config.entities
Class ResultTypeConfig

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

public class ResultTypeConfig
extends Located
implements java.io.Serializable

Configuration class for result types.

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

Author:
Mike, Rainer Hermanns, Neo
See Also:
Serialized Form

Nested Class Summary
static class ResultTypeConfig.Builder
          The builder for this object.
 
Field Summary
protected  java.lang.String className
           
protected  java.lang.String defaultResultParam
           
protected  java.lang.String name
           
protected  java.util.Map<java.lang.String,java.lang.String> params
           
 
Fields inherited from class com.opensymphony.xwork2.util.location.Located
location
 
Constructor Summary
protected ResultTypeConfig(ResultTypeConfig orig)
           
protected ResultTypeConfig(java.lang.String name, java.lang.String className)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getClassName()
           
 java.lang.String getClazz()
          Deprecated. Since 2.1, use getClassName() instead
 java.lang.String getDefaultResultParam()
           
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.lang.String> getParams()
           
 int hashCode()
           
 void setDefaultResultParam(java.lang.String defaultResultParam)
           
 
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

className

protected java.lang.String className

name

protected java.lang.String name

defaultResultParam

protected java.lang.String defaultResultParam

params

protected java.util.Map<java.lang.String,java.lang.String> params
Constructor Detail

ResultTypeConfig

protected ResultTypeConfig(java.lang.String name,
                           java.lang.String className)

ResultTypeConfig

protected ResultTypeConfig(ResultTypeConfig orig)
Method Detail

setDefaultResultParam

public void setDefaultResultParam(java.lang.String defaultResultParam)

getDefaultResultParam

public java.lang.String getDefaultResultParam()

getClazz

@Deprecated
public java.lang.String getClazz()
Deprecated. Since 2.1, use getClassName() instead


getClassName

public java.lang.String getClassName()

getName

public java.lang.String getName()

getParams

public java.util.Map<java.lang.String,java.lang.String> getParams()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


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