DataHandler updated
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / Resource.java
CommitLineData
9a78ca13
MT
1/*\r
2 * Copyright (c) 2015 Berner Fachhochschule, Switzerland.\r
3 *\r
4 * Project Smart Reservation System.\r
5 *\r
6 * Distributable under GPL license. See terms of license at gnu.org.\r
7 */\r
8package ch.bfh.ti.srs.dataschema;\r
9\r
10public class Resource {\r
11\r
12 private String name;\r
13 private String type;\r
14\r
15 /**\r
16 * Normal constructor for new resources created in the UserController\r
17 * \r
18 * @param name\r
19 * @param type\r
20 * @throws Exception\r
21 */\r
22\r
23 public Resource(String name, String type) throws Exception{\r
24 if (name == null)\r
25 throw new IllegalArgumentException("Name must not be null");\r
26\r
27 this.name = name;\r
28 this.type = type;\r
29 }\r
30\r
31 public String getName() {\r
32 return name;\r
33 }\r
34\r
35 public String getType() {\r
36 return type;\r
37 }\r
38\r
39 public void setName(String name) {\r
40 this.name = name;\r
41 }\r
42\r
43 public void setType(String type) {\r
44 this.type = type;\r
45 }\r
46}\r