KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > demo > icare > model > Category


1 package org.objectweb.petals.demo.icare.model;
2
3 import java.util.HashSet JavaDoc;
4 import java.util.Set JavaDoc;
5
6 /**
7  * @author Cristian Spiescu
8  * @since 15.01.2007
9  */

10 public class Category extends Entity
11 {
12     private String JavaDoc label;
13     
14     private Set JavaDoc<Car> carsInCategory = new HashSet JavaDoc<Car>();
15
16     public Category() {
17         
18     }
19     
20     public Category(String JavaDoc label) {
21         super();
22         this.label = label;
23     }
24     
25     public String JavaDoc getLabel() {
26         return label;
27     }
28
29     public void setLabel(String JavaDoc label) {
30         this.label = label;
31     }
32
33     public Set JavaDoc<Car> getCarsInCategory() {
34         return carsInCategory;
35     }
36
37     public void setCarsInCategory(Set JavaDoc<Car> carsInCategory) {
38         this.carsInCategory = carsInCategory;
39     }
40
41     public String JavaDoc toString() {
42         return label;
43     }
44     
45 }
46
Popular Tags