2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to you under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   *
17   * $Id: City.java 464373 2006-10-16 04:21:54Z rahul $
18   */
19  
20  package org.apache.shale.examples.test.dialog.basic;
21  
22  import java.io.Serializable;
23  
24  /***
25   * <p>Model bean for a city/state/zipcode combination.</pL>
26   */
27  public class City implements Serializable {
28      
29      public City(String city, String state, String zipCode) {
30          this.city = city;
31          this.state = state;
32          this.zipCode = zipCode;
33      }
34  
35      private String city;
36      private String state;
37      private String zipCode;
38  
39      public String getCity() {
40          return city;
41      }
42  
43      public String getState() {
44          return state;
45      }
46  
47      public String getZipCode() {
48          return zipCode;
49      }
50  
51  
52      public String toString() {
53          return "City[city=" + city + ",state=" + state + ",zipCode=" + zipCode + "]";
54      }
55  
56  
57  }