001: package org.apache.lucene.swing.models;
002:
003: /**
004: * Copyright 2005 The Apache Software Foundation
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: /**
020: * @author Jonathan Simon - jonathan_s_simon@yahoo.com
021: */
022: public class RestaurantInfo {
023: private int id;
024: private String name;
025:
026: private String type;
027:
028: private String phone;
029: private String street;
030: private String city;
031: private String state;
032: private String zip;
033:
034: public int getId() {
035: return id;
036: }
037:
038: public void setId(int id) {
039: this .id = id;
040: }
041:
042: public String getName() {
043: return name;
044: }
045:
046: public void setName(String name) {
047: this .name = name;
048: }
049:
050: public String getPhone() {
051: return phone;
052: }
053:
054: public void setPhone(String phone) {
055: this .phone = phone;
056: }
057:
058: public String getStreet() {
059: return street;
060: }
061:
062: public void setStreet(String street) {
063: this .street = street;
064: }
065:
066: public String getCity() {
067: return city;
068: }
069:
070: public void setCity(String city) {
071: this .city = city;
072: }
073:
074: public String getState() {
075: return state;
076: }
077:
078: public void setState(String state) {
079: this .state = state;
080: }
081:
082: public String getZip() {
083: return zip;
084: }
085:
086: public void setZip(String zip) {
087: this .zip = zip;
088: }
089:
090: public String getType() {
091: return type;
092: }
093:
094: public void setType(String type) {
095: this .type = type;
096: }
097:
098: public String toString() {
099: return getName() + " - " + getPhone();
100: }
101:
102: }
|