org.apache.tapestry5.upload.internal.services
Class ParameterValue

java.lang.Object
  extended by org.apache.tapestry5.upload.internal.services.ParameterValue

public class ParameterValue
extends Object

Holds single or multivalued values.


Field Summary
static ParameterValue NULL
           
 
Constructor Summary
ParameterValue(String... values)
           
ParameterValue(String value)
           
 
Method Summary
 void add(String value)
           
 boolean isMulti()
           
 String[] multi()
           
 String single()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final ParameterValue NULL
Constructor Detail

ParameterValue

public ParameterValue(String value)

ParameterValue

public ParameterValue(String... values)
Method Detail

single

public String single()
Returns:
Single value of parameter (or first value if there are multiple values)

multi

public String[] multi()
Returns:
All values of parameter

add

public void add(String value)

isMulti

public boolean isMulti()


Copyright © 2003-2012 The Apache Software Foundation.