org.apache.tapestry.multipart
Class ValuePart

java.lang.Object
  extended byorg.apache.tapestry.multipart.ValuePart

public class ValuePart
extends java.lang.Object

A portion of a multipart request that stores a value, or values, for a parameter.

Since:
2.0.1
Author:
Howard Lewis Ship

Constructor Summary
ValuePart(java.lang.String value)
           
 
Method Summary
 void add(java.lang.String newValue)
           
 void cleanup()
          Does nothing.
 int getCount()
           
 java.lang.String getValue()
          Returns the value, or the first value (if multi-valued).
 java.lang.String[] getValues()
          Returns the values as an array of strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuePart

public ValuePart(java.lang.String value)
Method Detail

getCount

public int getCount()

getValue

public java.lang.String getValue()
Returns the value, or the first value (if multi-valued).


getValues

public java.lang.String[] getValues()
Returns the values as an array of strings. If there is only one value, it is returned wrapped as a single element array.


add

public void add(java.lang.String newValue)

cleanup

public void cleanup()
Does nothing.