com.bankframe.bo
Class StructuredDataPacket

java.lang.Object
  extended bycom.bankframe.bo.DataPacket
      extended bycom.bankframe.bo.StructuredDataPacket
All Implemented Interfaces:
java.io.Serializable

public class StructuredDataPacket
extends DataPacket

Structured DataPacket, allows DataPackets to be nested within each other

See Also:
Serialized Form

Field Summary
static int DATAPACKET
           
static int STRING
           
static int VECTOR_OF_DATAPACKETS
           
static int VECTOR_OF_STRINGS
           
 
Fields inherited from class com.bankframe.bo.DataPacket
DATA_PACKET_NAME, OWNER, REQUEST_ID
 
Constructor Summary
StructuredDataPacket()
          Default no args constructor
StructuredDataPacket(java.lang.String name)
          StructuredDataPacket constructor
 
Method Summary
 int getKeyType(java.lang.String key)
          Method to determine the type of an object in a data packet denoted by a specific key.
 java.lang.Object put(java.lang.String key, java.lang.Object value)
          Method to put an object in a data packet.
 java.lang.Object put(java.lang.String key, java.lang.Object value, int dataType)
          Method to put an object in a data packet.
 
Methods inherited from class com.bankframe.bo.DataPacket
append, clear, contains, containsKey, elements, equals, get, getName, getString, hashCode, isEmpty, keys, remove, setName, size, toList, toListInOrder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static final int STRING
See Also:
Constant Field Values

DATAPACKET

public static final int DATAPACKET
See Also:
Constant Field Values

VECTOR_OF_STRINGS

public static final int VECTOR_OF_STRINGS
See Also:
Constant Field Values

VECTOR_OF_DATAPACKETS

public static final int VECTOR_OF_DATAPACKETS
See Also:
Constant Field Values
Constructor Detail

StructuredDataPacket

public StructuredDataPacket()
Default no args constructor


StructuredDataPacket

public StructuredDataPacket(java.lang.String name)
StructuredDataPacket constructor

Method Detail

getKeyType

public int getKeyType(java.lang.String key)
Method to determine the type of an object in a data packet denoted by a specific key.

Parameters:
key - Srting representing the key of the object to determine
Returns:
Integer representing the data type of a given object

put

public java.lang.Object put(java.lang.String key,
                            java.lang.Object value)
Method to put an object in a data packet. This method will determine the objects type and cache it accordingly.

Overrides:
put in class DataPacket
Parameters:
key - String representing this objects key in the DataPacket
value - The object to put in the DataPacket
Returns:
the previous value of the specified key in this hashtable, or null if it did not have one.

put

public java.lang.Object put(java.lang.String key,
                            java.lang.Object value,
                            int dataType)
Method to put an object in a data packet.

Parameters:
key - String representing this objects key in the DataPacket
value - The object to put in the DataPacket
dataType - The data type of the object to be recorded.


Copyright © 2005, 2007, Oracle. All rights reserved.