1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.scxml.model;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 /***
24 * The class in this SCXML object model that corresponds to the SCXML
25 * <datamodel> element.
26 *
27 */
28 public class Datamodel {
29
30 /***
31 * The set of <data> elements, parsed as Elements, that are
32 * children of this <datamodel> element.
33 */
34 private List data;
35
36 /***
37 * Constructor.
38 */
39 public Datamodel() {
40 this.data = new ArrayList();
41 }
42
43 /***
44 * Get all the data children of this datamodel.
45 *
46 * @return Returns the data.
47 */
48 public final List getData() {
49 return data;
50 }
51
52 /***
53 * Add a Data.
54 *
55 * @param datum The data child to be added.
56 */
57 public final void addData(final Data datum) {
58 if (datum != null) {
59 data.add(datum);
60 }
61 }
62
63 }
64