01: package org.apache.commons.betwixt.scarab;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one or more
05: * contributor license agreements. See the NOTICE file distributed with
06: * this work for additional information regarding copyright ownership.
07: * The ASF licenses this file to You under the Apache License, Version 2.0
08: * (the "License"); you may not use this file except in compliance with
09: * 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: * Logger
36: */
37: private final static Log log = LogFactory
38: .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: globalAttributeOptions = new ArrayList();
50: }
51:
52: public String toString() {
53: return super .toString() + "[name=" + name + ";createdDate="
54: + createdDate + ";options=" + globalAttributeOptions
55: + "]";
56: }
57:
58: public void addGlobalAttributeOption(
59: GlobalAttributeOption globalAttributeOption) {
60: globalAttributeOptions.add(globalAttributeOption);
61: }
62:
63: public List getGlobalAttributeOptions() {
64: return globalAttributeOptions;
65: }
66:
67: public void setName(String name) {
68: this .name = name;
69: }
70:
71: public String getName() {
72: return name;
73: }
74:
75: public void addCreatedDate(CreatedDate cd) {
76: this .createdDate = cd;
77: }
78:
79: public CreatedDate getCreatedDate() {
80: return this.createdDate;
81: }
82: }
|