1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.computerlabs.entity;
16
17 import java.util.ArrayList;
18 import java.util.List;
19 import javax.xml.bind.annotation.XmlElement;
20 import javax.xml.bind.annotation.XmlRootElement;
21 import org.apache.commons.collections.CollectionUtils;
22 import org.kuali.mobility.computerlabs.util.LocationTransform;
23
24
25
26
27
28 @XmlRootElement(name="labGroup")
29 public class LabGroupImpl implements LabGroup {
30 private String name;
31 @XmlElement(name="locations")
32 private List<LocationImpl> locations;
33
34 public LabGroupImpl() {
35 super();
36 this.locations = new ArrayList<LocationImpl>();
37 }
38
39
40
41
42 @Override
43 public String getName() {
44 return name;
45 }
46
47
48
49
50 @Override
51 public void setName(String name) {
52 this.name = name;
53 }
54
55
56
57
58 @Override
59 public List<LocationImpl> getLocations() {
60 return locations;
61 }
62
63
64
65
66 @Override
67 public void setLocations(List<? extends Location> locations) {
68 CollectionUtils.collect(locations, new LocationTransform(), this.locations);
69 }
70 }