|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forms.FormData.FieldData
public class FormData.FieldData
Inner class to represent the value of a field on a form
Field Summary | |
---|---|
protected java.io.InputStream |
is
|
protected boolean |
isFile
|
protected java.lang.String |
name
|
protected java.lang.Object |
value
|
Constructor Summary | |
---|---|
FormData.FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
Constructs a FieldData object from a WebScript FormField object |
|
FormData.FieldData(java.lang.String name,
java.lang.Object value,
boolean isFile)
Default Constructor |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
Returns an InputStream onto the content of the file, throws IllegalStateException if this is called for non file field data |
java.lang.String |
getName()
Returns the name of the form field that data represents |
java.lang.Object |
getValue()
Returns the value of the form field that data represents |
boolean |
isFile()
Determines whether the data represents a file |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.Object value
protected boolean isFile
protected java.io.InputStream is
Constructor Detail |
---|
public FormData.FieldData(java.lang.String name, java.lang.Object value, boolean isFile)
name
- The name of the form fieldvalue
- The value of the form fieldisFile
- Whether the field data represents an uploaded filepublic FormData.FieldData(org.springframework.extensions.webscripts.servlet.FormData.FormField field)
field
- The WebScript FormData object to create the field fromMethod Detail |
---|
public java.lang.String getName()
public java.lang.Object getValue()
public boolean isFile()
public java.io.InputStream getInputStream()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |