View Javadoc

1   /*
2    * The SmartWeb Framework
3    * Copyright (C) 2004-2006
4    *
5    * This library is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU Lesser General Public
7    * License as published by the Free Software Foundation; either
8    * version 2.1 of the License, or (at your option) any later version.
9    *
10   * This library is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   * Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public
16   * License along with this library; if not, write to the Free Software
17   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18   *
19   * For further informations on the SmartWeb Framework please visit
20   *
21   *                        http://smartweb.sourceforge.net
22   */
23   
24  package net.smartlab.web.shop;
25  
26  import java.util.Set;
27  
28  import net.smartlab.web.BusinessObject;
29  import net.smartlab.web.registry.Locality;
30  
31  /**
32   * @TODO documentation
33   * @author rlogiacco@smartlab.net
34   */
35  public class Store extends BusinessObject {
36  
37  	private static final long serialVersionUID = -4659457153200971907L;
38  	
39  	/**
40  	 * @TODO documentation
41  	 */
42  	private long id;
43  	/**
44  	 * @TODO documentation
45  	 */
46  	private String display;
47  	/**
48  	 * @TODO documentation
49  	 */
50  	private double capacity;
51  	/**
52  	 * @TODO documentation
53  	 */
54  	private Locality location;
55  	
56  	/**
57  	 * @TODO documentation
58  	 * @associates <{net.smartlab.web.shop.Stock}>
59  	 * @directed directed
60  	 * @link aggregation
61  	 * @supplierCardinality 0..*
62  	 */
63  	private Set goods;
64  
65  	/**
66  	 * @TODO documentation
67  	 * @return returns the <code>id</code>.
68  	 */
69  	public long getId() {
70  		return id;
71  	}
72  
73  	/**
74  	 * @TODO documentation
75  	 * @param id the <code>id</code> to set.
76  	 */
77  	public void setId(long id) {
78  		this.id = id;
79  	}
80  
81  	/**
82  	 * @TODO documentation
83  	 * @return returns the <code>display</code>.
84  	 */
85  	public String getDisplay() {
86  		return display;
87  	}
88  
89  	/**
90  	 * @TODO documentation
91  	 * @param display the <code>display</code> to set.
92  	 */
93  	public void setDisplay(String display) {
94  		this.display = display;
95  	}
96  
97  	/**
98  	 * @TODO documentation
99  	 * @return returns the <code>capacity</code>.
100 	 */
101 	public double getCapacity() {
102 		return capacity;
103 	}
104 
105 	/**
106 	 * @TODO documentation
107 	 * @param capacity the <code>capacity</code> to set.
108 	 */
109 	public void setCapacity(double capacity) {
110 		this.capacity = capacity;
111 	}
112 
113 	/**
114 	 * @TODO documentation
115 	 * @return returns the <code>location</code>.
116 	 */
117 	public Locality getLocation() {
118 		return location;
119 	}
120 
121 	/**
122 	 * @TODO documentation
123 	 * @param location the <code>location</code> to set.
124 	 */
125 	public void setLocation(Locality location) {
126 		this.location = location;
127 	}
128 }