org.apache.tapestry.multipart
Class ValuePart
java.lang.Object
|
+--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,v 1.2 2003/03/23 16:12:38 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValuePart
public ValuePart(String value)
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
- Following copied from interface:
org.apache.tapestry.multipart.IPart
- See Also:
UploadPart.cleanup()