1 package org.apache.commons.betwixt.scarab;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 import java.io.Serializable;
21 import java.util.ArrayList;
22 import java.util.List;
23
24 import org.apache.commons.logging.Log;
25 import org.apache.commons.logging.LogFactory;
26
27
28
29
30
31
32
33 public class GlobalAttribute implements Serializable
34 {
35
36
37
38 private final static Log log = LogFactory.getLog(GlobalAttribute.class);
39
40 private List globalAttributeOptions;
41
42 private String name;
43 private CreatedDate createdDate;
44
45
46
47
48 public GlobalAttribute()
49 {
50 globalAttributeOptions = new ArrayList();
51 }
52
53 public String toString() {
54 return super.toString() + "[name=" + name + ";createdDate=" + createdDate + ";options=" + globalAttributeOptions + "]";
55 }
56
57 public void addGlobalAttributeOption(GlobalAttributeOption globalAttributeOption)
58 {
59 globalAttributeOptions.add(globalAttributeOption);
60 }
61
62 public List getGlobalAttributeOptions()
63 {
64 return globalAttributeOptions;
65 }
66
67 public void setName(String name)
68 {
69 this.name = name;
70 }
71
72 public String getName()
73 {
74 return name;
75 }
76
77 public void addCreatedDate(CreatedDate cd)
78 {
79 this.createdDate = cd;
80 }
81
82 public CreatedDate getCreatedDate()
83 {
84 return this.createdDate;
85 }
86 }