|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.bo.DataPacketUtils
public class DataPacketUtils
| Field Summary | |
|---|---|
static String |
VALUE
|
| Constructor Summary | |
|---|---|
DataPacketUtils()
|
|
| Method Summary | |
|---|---|
static Vector |
addEnumToVector(Vector addTo,
Enumeration entities,
Class classInEnum)
This methods appends the contents of an enumeration to a vector. |
static Vector |
convertEnumToVector(Enumeration enumToConvert,
Class classInEnum)
This method converts an Enumeration to a Vector This method also uses the Server.getObjectFromEnum method to extact the objects from the enumeration. |
static Vector |
convertToDataPackets(EEntity object)
This method converts a object to a vector of DataPackets. |
static Vector |
convertToDataPackets(EEntityRemote object)
This method converts a object to a vector of DataPackets. |
static Vector |
convertToDataPackets(Enumeration objects)
This method converts an Enumeration of objects to a vector of DataPackets. |
static Vector |
convertToDataPackets(String dataPacketName,
Object value)
This method converts a single object to a vector of DataPackets. |
static Vector |
convertToDataPackets(Vector objects)
This method converts a vector of objects to a vector of DataPackets. |
static DataPacket |
createDataPacket(String dataPacketName,
Object value)
This method creates a DataPacket for returning single values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VALUE
| Constructor Detail |
|---|
public DataPacketUtils()
| Method Detail |
|---|
public static Vector addEnumToVector(Vector addTo,
Enumeration entities,
Class classInEnum)
throws ProcessingErrorException
addTo - java.util.Vector to add the enumeration elements to.entities - java.util.Enumeration.classInEnum - java.lang.Class
ProcessingErrorException
public static Vector convertEnumToVector(Enumeration enumToConvert,
Class classInEnum)
enumToConvert - classInEnum -
public static Vector convertToDataPackets(EEntity object)
throws ProcessingErrorException
object - EEntity
ProcessingErrorException - is thrown if the object cannot be converted.
public static Vector convertToDataPackets(EEntityRemote object)
throws ProcessingErrorException
object - EEntityRemote
ProcessingErrorException - is thrown if the object cannot be converted.
public static Vector convertToDataPackets(String dataPacketName,
Object value)
throws ProcessingErrorException
dataPacketName - Stringvalue - Object
ProcessingErrorException - is thrown if the object cannot be converted.
public static Vector convertToDataPackets(Enumeration objects)
throws ProcessingErrorException
objects - Enumeration
ProcessingErrorException - is thrown if the enumeration cannot be converted.
public static Vector convertToDataPackets(Vector objects)
throws ProcessingErrorException
objects - Vector
ProcessingErrorException - is thrown if the enumeration cannot be converted.
public static DataPacket createDataPacket(String dataPacketName,
Object value)
dataPacketName - String to be used as the DataPacket namevalue - Object to be put into the returning datapacket object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||