|
|
| 1024 |
1028 |
|
| 892 | 892 | }
|
| 893 | 893 | }
|
| 894 | 894 |
|
| 895 | public XMLElement toXML() {
|
| 896 | return toXML(true);
|
| 897 | }
|
| 898 |
|
| 895 | 899 | /**
|
| 896 | 900 | * @brief Check everything and build an XML element that contains as
|
| 897 | 901 | * children all of the values that need storing for this item.
|
| --- | --- | |
| 901 | 905 | * @return An XMLElement containing as children, all of the key
|
| 902 | 906 | * values associated with this auction entry.
|
| 903 | 907 | */
|
| 904 | | public XMLElement toXML() {
|
| 908 | public XMLElement toXML(boolean includeEvents) {
|
| 905 | 909 | XMLElement xmlResult = new XMLElement("auction");
|
| 906 | 910 |
|
| 907 | 911 | xmlResult.setProperty("id", getIdentifier());
|
| --- | --- | |
| 957 | 961 | xmlResult.addChild(xshipping);
|
| 958 | 962 | }
|
| 959 | 963 |
|
| 960 | | if(mEntryEvents != null) {
|
| 964 | if(includeEvents && mEntryEvents != null) {
|
| 961 | 965 | XMLElement xlog = mEntryEvents.toXML();
|
| 962 | 966 | if (xlog != null) {
|
| 963 | 967 | xmlResult.addChild(xlog);
|