WebFormContainer instead.
This class facilitates the handling and manipulation of WJP containers.@Deprecated
public class WJPContainer
extends java.lang.Object
| Constructor and Description |
|---|
WJPContainer()
Deprecated.
Constructs a new empty
WJPContainer. |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(java.lang.String fieldName,
ProcessConstants.AdeptDataType dataType)
Deprecated.
Adds a new field to this WJP container with the given name and data type.
|
ProcessConstants.AdeptDataType |
getDataType(java.lang.String fieldName)
Deprecated.
Returns the data type of the field with the given name.
|
int |
getFieldCount()
Deprecated.
Returns the number of fields in this WJP container.
|
java.lang.String[] |
getFieldNames()
Deprecated.
Returns the names of all fields in this WJP container.
|
java.lang.Object |
getValue(java.lang.String fieldName)
Deprecated.
Returns the value of the field with the given name.
|
boolean |
hasField(java.lang.String fieldName)
Deprecated.
Returns whether this WJP container has a field with the given name.
|
void |
loadFromStream(java.io.InputStream in)
Deprecated.
Loads the data of the WJP container from the given input stream.
|
void |
loadFromUDTValue(UDTValue udtValue)
Deprecated.
Loads the data of the WJP container from the given
UDTValue. |
void |
removeField(java.lang.String fieldName)
Deprecated.
Removes the field with the given name from this WJP container.
|
java.io.InputStream |
saveToStream()
Deprecated.
Serialises the data of this WJP container and returns an input stream from
which the data can be read.
|
void |
saveToStream(java.io.OutputStream out)
Deprecated.
Serialises the data of this WJP container to the given output stream.
|
UDTValue |
saveToUDTValue()
Deprecated.
Serialises the data of this WJP container to a
UDTValue. |
void |
setValue(java.lang.String fieldName,
java.lang.Object value)
Deprecated.
Sets the value of the field with the given name to the given value.
|
public WJPContainer()
WJPContainer.public void loadFromUDTValue(UDTValue udtValue) throws java.io.IOException, XMLFormatException
UDTValue.udtValue - the UDT value from which the WJP container should be readjava.io.IOException - if reading the UDT value failedXMLFormatException - if the UDT value isn't a valid WJP containerpublic void loadFromStream(java.io.InputStream in)
throws java.io.IOException,
XMLFormatException
in - the input from which the WJP container should be readjava.io.IOException - if reading the input stream failedXMLFormatException - if the input stream didn't contain a valid WJP
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 WJP container should
be savedjava.io.IOException - if the WJP 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 WJP
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