1 package org.apache.commons.betwixt.scarab;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership.
7 * The ASF licenses this file to You under the Apache License, Version 2.0
8 * (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
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 * <p><code>GlobalAttribute</code> is a sample bean for use by the test cases.</p>
29 *
30 * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
31 * @version $Id: GlobalAttribute.java 438373 2006-08-30 05:17:21Z bayard $
32 */
33 public class GlobalAttribute implements Serializable
34 {
35 /**
36 * Logger
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 * Constructor for the ScarabSettings object
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 }