summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/utils/CastorArrayList.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/utils/CastorArrayList.java')
-rwxr-xr-xsource/com/c2kernel/utils/CastorArrayList.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/source/com/c2kernel/utils/CastorArrayList.java b/source/com/c2kernel/utils/CastorArrayList.java
new file mode 100755
index 0000000..10ff948
--- /dev/null
+++ b/source/com/c2kernel/utils/CastorArrayList.java
@@ -0,0 +1,30 @@
+package com.c2kernel.utils;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+
+/**************************************************************************
+ * Wrapper for a root element to an ArrayList. Castor Marshalls arraylists
+ * as multiple elements, so this class is needed to provide a root element
+ * to stop it crashing.
+ *
+ * $Revision: 1.4 $
+ * $Date: 2004/01/22 11:17:42 $
+ *
+ * Copyright (C) 2003 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ **************************************************************************/
+//
+abstract public class CastorArrayList implements Serializable{
+ public ArrayList list = new ArrayList();
+
+ public CastorArrayList() {
+ super();
+ list = new ArrayList();
+ }
+
+ public CastorArrayList(ArrayList list) {
+ this();
+ this.list = list;
+ }
+}