com.opensymphony.xwork2.config.entities
Class ResultTypeConfig.Builder

java.lang.Object
  extended by com.opensymphony.xwork2.config.entities.ResultTypeConfig.Builder
Enclosing class:
ResultTypeConfig

public static final class ResultTypeConfig.Builder
extends java.lang.Object

The builder for this object. An instance of this object is the only way to construct a new instance. The purpose is to enforce the immutability of the object. The methods are structured in a way to support chaining. After setting any values you need, call the build() method to create the object.


Field Summary
protected  ResultTypeConfig target
           
 
Constructor Summary
ResultTypeConfig.Builder(ResultTypeConfig orig)
           
ResultTypeConfig.Builder(java.lang.String name, java.lang.String className)
           
 
Method Summary
 ResultTypeConfig.Builder addParam(java.lang.String name, java.lang.String value)
           
 ResultTypeConfig.Builder addParams(java.util.Map<java.lang.String,java.lang.String> params)
           
 ResultTypeConfig build()
           
 ResultTypeConfig.Builder className(java.lang.String name)
           
 ResultTypeConfig.Builder defaultResultParam(java.lang.String defaultResultParam)
           
protected  void embalmTarget()
           
 ResultTypeConfig.Builder location(Location loc)
           
 ResultTypeConfig.Builder name(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected ResultTypeConfig target
Constructor Detail

ResultTypeConfig.Builder

public ResultTypeConfig.Builder(java.lang.String name,
                                java.lang.String className)

ResultTypeConfig.Builder

public ResultTypeConfig.Builder(ResultTypeConfig orig)
Method Detail

name

public ResultTypeConfig.Builder name(java.lang.String name)

className

public ResultTypeConfig.Builder className(java.lang.String name)

addParam

public ResultTypeConfig.Builder addParam(java.lang.String name,
                                         java.lang.String value)

addParams

public ResultTypeConfig.Builder addParams(java.util.Map<java.lang.String,java.lang.String> params)

defaultResultParam

public ResultTypeConfig.Builder defaultResultParam(java.lang.String defaultResultParam)

location

public ResultTypeConfig.Builder location(Location loc)

build

public ResultTypeConfig build()

embalmTarget

protected void embalmTarget()


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