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

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

public static final class ResultConfig.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  ResultConfig target
           
 
Constructor Summary
ResultConfig.Builder(ResultConfig orig)
           
ResultConfig.Builder(java.lang.String name, java.lang.String className)
           
 
Method Summary
 ResultConfig.Builder addParam(java.lang.String name, java.lang.String value)
           
 ResultConfig.Builder addParams(java.util.Map<java.lang.String,java.lang.String> params)
           
 ResultConfig build()
           
 ResultConfig.Builder className(java.lang.String name)
           
protected  void embalmTarget()
           
 ResultConfig.Builder location(Location loc)
           
 ResultConfig.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 ResultConfig target
Constructor Detail

ResultConfig.Builder

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

ResultConfig.Builder

public ResultConfig.Builder(ResultConfig orig)
Method Detail

name

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

className

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

addParam

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

addParams

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

location

public ResultConfig.Builder location(Location loc)

build

public ResultConfig build()

embalmTarget

protected void embalmTarget()


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