29 |
|
|
30 |
|
//---CONSTRUCTORS--- |
31 |
|
|
32 |
< |
// Constructor for accepting XML input. |
32 |
> |
/** |
33 |
> |
* Constructor for accepting XML input. |
34 |
> |
* |
35 |
> |
* @param xml A String of XML to process. |
36 |
> |
*/ |
37 |
|
public XMLPacketMaker (String xml) { |
38 |
|
_xml = xml; |
39 |
|
} |
40 |
|
|
41 |
|
//---PUBLIC METHODS--- |
42 |
|
|
43 |
+ |
/** |
44 |
+ |
* Method to create an XML packet from the data this |
45 |
+ |
* class was constructed with. |
46 |
+ |
* |
47 |
+ |
* @return an XMLPacket representing the XML String given |
48 |
+ |
*/ |
49 |
|
public XMLPacket createXMLPacket() { |
50 |
|
|
51 |
|
// Create the XMLPacket to store values in. |