public class WebFormContainer
extends java.lang.Object
| Constructor and Description |
|---|
WebFormContainer()
Constructs a new empty
WebFormContainer. |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(java.lang.String fieldName,
ProcessConstants.AdeptDataType dataType)
Adds a new field to this WebForm container with the given name and data type.
|
ProcessConstants.AdeptDataType |
getDataType(java.lang.String fieldName)
Returns the data type of the field with the given name.
|
int |
getFieldCount()
Returns the number of fields in this WebForm container.
|
java.lang.String[] |
getFieldNames()
Returns the names of all fields in this WebForm container.
|
java.lang.Object |
getValue(java.lang.String fieldName)
Returns the value of the field with the given name.
|
boolean |
hasField(java.lang.String fieldName)
Returns whether this WebForm container has a field with the given name.
|
void |
loadFromStream(java.io.InputStream in)
Loads the data of the WebForm container from the given input stream.
|
void |
loadFromUDTValue(UDTValue udtValue)
Loads the data of the WebForm container from the given
UDTValue. |
void |
removeField(java.lang.String fieldName)
Removes the field with the given name from this WebForm container.
|
java.io.InputStream |
saveToStream()
Serialises the data of this WebForm container and returns an input stream from
which the data can be read.
|
void |
saveToStream(java.io.OutputStream out)
Serialises the data of this WebForm container to the given output stream.
|
UDTValue |
saveToUDTValue()
Serialises the data of this WebForm container to a
UDTValue. |
void |
setValue(java.lang.String fieldName,
java.lang.Object value)
Sets the value of the field with the given name to the given value.
|
public WebFormContainer()
WebFormContainer.public void loadFromUDTValue(UDTValue udtValue) throws java.io.IOException, XMLFormatException
UDTValue.udtValue - the UDT value from which the WebForm container should be readjava.io.IOException - if reading the UDT value failedXMLFormatException - if the UDT value isn't a valid WebForm containerpublic void loadFromStream(java.io.InputStream in)
throws java.io.IOException,
XMLFormatException
in - the input from which the WebForm container should be readjava.io.IOException - if reading the input stream failedXMLFormatException - if the input stream didn't contain a valid WebForm
containerpublic UDTValue saveToUDTValue()
UDTValue.public void saveToStream(java.io.OutputStream out)
throws java.io.IOException
out - the output stream to which the data of this WebForm container should
be savedjava.io.IOException - if the WebForm container could not be written to the given
output streampublic java.io.InputStream saveToStream()
throws java.io.IOException
java.io.IOException - if the input stream could not be created for the WebForm
containerpublic java.lang.String[] getFieldNames()
public int getFieldCount()
public boolean hasField(java.lang.String fieldName)
fieldName - the name of the fieldpublic void addField(java.lang.String fieldName,
ProcessConstants.AdeptDataType dataType)
fieldName - the name of the new fielddataType - the data type of the new fieldpublic void removeField(java.lang.String fieldName)
fieldName - the name of the field to be removedpublic ProcessConstants.AdeptDataType getDataType(java.lang.String fieldName)
fieldName - name of the desired fieldpublic java.lang.Object getValue(java.lang.String fieldName)
fieldName - the name of the desired fieldpublic void setValue(java.lang.String fieldName,
java.lang.Object value)
fieldName - the name of the desired fieldvalue - the new value for the field