1 /*******************************************************************************
2 * Imixs Workflow
3 * Copyright (C) 2001, 2011 Imixs Software Solutions GmbH,
4 * http://www.imixs.com
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You can receive a copy of the GNU General Public
17 * License at http://www.gnu.org/licenses/gpl.html
18 *
19 * Project:
20 * http://www.imixs.org
21 * http://java.net/projects/imixs-workflow
22 *
23 * Contributors:
24 * Imixs Software Solutions GmbH - initial API and implementation
25 * Ralph Soika - Software Developer
26 *******************************************************************************/
27 package org.imixs.workflow.xml;
28
29 import java.util.List;
30 import java.util.Vector;
31
32 import javax.xml.bind.annotation.XmlRootElement;
33
34 /**
35 * An EntityTabe represents a list of XMLItemCollections to be used by JAXB api.
36 * Each XMLItemCollection in the list represents the same properties. So the
37 * EntityTable can be used to generate a table repseentation of
38 * XMLItemCollections
39 *
40 * @author rsoika
41 * @version 0.0.1
42 */
43 @XmlRootElement(name = "collection")
44 public class EntityTable implements java.io.Serializable {
45 private XMLItemCollection[] entity;
46 private List<String> attributeList;
47
48 public EntityTable() {
49 setEntity(new XMLItemCollection[] {});
50 setAttributeList(new Vector<String>());
51 }
52
53 public XMLItemCollection[] getEntity() {
54 return entity;
55 }
56
57 public void setEntity(XMLItemCollection[] entity) {
58 this.entity = entity;
59 }
60
61 public List<String> getAttributeList() {
62 return attributeList;
63 }
64
65 public void setAttributeList(List<String> attributeList) {
66 this.attributeList = attributeList;
67 }
68
69
70
71 }