001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.harmony.beans.tests.support.mock;
019:
020: import java.util.ArrayList;
021: import java.util.Calendar;
022: import java.util.Currency;
023: import java.util.Date;
024: import java.util.Locale;
025: import java.util.Properties;
026: import java.util.TimeZone;
027:
028: public class MockBean4CodecAdv extends MockBean4Codec {
029:
030: String id;
031:
032: ArrayList<Object> arraylist = new ArrayList<Object>();
033:
034: Calendar calendar = Calendar.getInstance();
035:
036: Currency currency = Currency.getInstance(Locale.US);
037:
038: Date date = new Date();
039:
040: Locale locale = Locale.US;
041:
042: Properties properties = new Properties();
043:
044: TimeZone timezone = TimeZone.getTimeZone("GMT+8");
045:
046: /**
047: *
048: */
049: public MockBean4CodecAdv(String id) {
050: super ();
051: this .id = id;
052: }
053:
054: public String getId() {
055: return id;
056: }
057:
058: /**
059: * @return Returns the arraylist.
060: */
061: public ArrayList<Object> getArraylist() {
062: return arraylist;
063: }
064:
065: /**
066: * @param arraylist
067: * The arraylist to set.
068: */
069: public void setArraylist(ArrayList<Object> arraylist) {
070: this .arraylist = arraylist;
071: }
072:
073: /**
074: * @return Returns the calendar.
075: */
076: public Calendar getCalendar() {
077: return calendar;
078: }
079:
080: /**
081: * @param calendar
082: * The calendar to set.
083: */
084: public void setCalendar(Calendar calendar) {
085: this .calendar = calendar;
086: }
087:
088: /**
089: * @return Returns the currency.
090: */
091: public Currency getCurrency() {
092: return currency;
093: }
094:
095: /**
096: * @param currency
097: * The currency to set.
098: */
099: public void setCurrency(Currency currency) {
100: this .currency = currency;
101: }
102:
103: /**
104: * @return Returns the date.
105: */
106: public Date getDate() {
107: return date;
108: }
109:
110: /**
111: * @param date
112: * The date to set.
113: */
114: public void setDate(Date date) {
115: this .date = date;
116: }
117:
118: /**
119: * @return Returns the locale.
120: */
121: public Locale getLocale() {
122: return locale;
123: }
124:
125: /**
126: * @param locale
127: * The locale to set.
128: */
129: public void setLocale(Locale locale) {
130: this .locale = locale;
131: }
132:
133: /**
134: * @return Returns the properties.
135: */
136: public Properties getProperties() {
137: return properties;
138: }
139:
140: /**
141: * @param properties
142: * The properties to set.
143: */
144: public void setProperties(Properties properties) {
145: this .properties = properties;
146: }
147:
148: /**
149: * @return Returns the timezone.
150: */
151: public TimeZone getTimezone() {
152: return timezone;
153: }
154:
155: /**
156: * @param timezone
157: * The timezone to set.
158: */
159: public void setTimezone(TimeZone timezone) {
160: this.timezone = timezone;
161: }
162: }
|