org.apache.myfaces.extensions.cdi.message.impl
Class NamedArgumentBuilder

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.message.impl.NamedArgumentBuilder

public class NamedArgumentBuilder
extends Object

Helper for creating named-arguments


Method Summary
 NamedArgumentBuilder add(String name, Serializable value)
          Allows to add further arguments which are mapped to a name.
 NamedArgument[] create()
          Creates an array of NamedArguments for the stored arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public NamedArgumentBuilder add(String name,
                                Serializable value)
Allows to add further arguments which are mapped to a name.

Parameters:
name - name of the argument
value - value of the argument
Returns:
the current instance of the builder

create

public NamedArgument[] create()
Creates an array of NamedArguments for the stored arguments

Returns:
array of the added arguments


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.