org.apache.tapestry.multipart
Class ValuePart

java.lang.Object
  extended by org.apache.tapestry.multipart.ValuePart
All Implemented Interfaces:
IPart

public class ValuePart
extends Object
implements IPart

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

Since:
2.0.1
Version:
$Id: ValuePart.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
ValuePart(String value)
           
 
Method Summary
 void add(String newValue)
           
 void cleanup()
          Does nothing.
 int getCount()
           
 String getValue()
          Returns the value, or the first value (if multi-valued).
 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(String value)
Method Detail

getCount

public int getCount()

getValue

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


getValues

public 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(String newValue)

cleanup

public void cleanup()
Does nothing.

Specified by:
cleanup in interface IPart
See Also:
UploadPart.cleanup()