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

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

public final class NamedArguments
extends Object

Helper for creating named-arguments


Method Summary
static NamedArgumentBuilder add(String name, Serializable value)
          Helper for creating named arguments easily
static Serializable[] convert(Map<String,Serializable> arguments)
          Converts the given arguments to an array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static Serializable[] convert(Map<String,Serializable> arguments)
Converts the given arguments to an array

Parameters:
arguments - current arguments
Returns:
current arguments as array

add

public static NamedArgumentBuilder add(String name,
                                       Serializable value)
Helper for creating named arguments easily

Parameters:
name - name of the argument
value - value of the argument
Returns:
named-argument-builder which provides a fluent API for adding more named arguments


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