1 package org.objectweb.petals.demo.icare.model; 2 3 import java.util.HashSet ; 4 import java.util.Set ; 5 6 10 public class Category extends Entity 11 { 12 private String label; 13 14 private Set <Car> carsInCategory = new HashSet <Car>(); 15 16 public Category() { 17 18 } 19 20 public Category(String label) { 21 super(); 22 this.label = label; 23 } 24 25 public String getLabel() { 26 return label; 27 } 28 29 public void setLabel(String label) { 30 this.label = label; 31 } 32 33 public Set <Car> getCarsInCategory() { 34 return carsInCategory; 35 } 36 37 public void setCarsInCategory(Set <Car> carsInCategory) { 38 this.carsInCategory = carsInCategory; 39 } 40 41 public String toString() { 42 return label; 43 } 44 45 } 46 | Popular Tags |