01: package org.tcat.citd.sim.udig.bookmarks.internal;
02:
03: import org.eclipse.emf.common.util.URI;
04:
05: /**
06: * Container for a reference to a map
07: * <p>
08: * </p>
09: *
10: * @author cole.markham
11: * @since 1.0.0
12: */
13: public class MapReference {
14: private URI mapID;
15: private URI projectID;
16: private String name;
17:
18: /**
19: * @param mapid The URI of the map
20: * @param projectid The URI of the project
21: * @param name The name of the map
22: */
23: public MapReference(URI mapid, URI projectid, String name) {
24: mapID = mapid;
25: projectID = projectid;
26: this .name = name;
27: }
28:
29: /**
30: * @return Returns the mapID.
31: */
32: public URI getMapID() {
33: return mapID;
34: }
35:
36: /**
37: * @param mapID The mapID to set.
38: */
39: public void setMapID(URI mapID) {
40: this .mapID = mapID;
41: }
42:
43: /**
44: * @return Returns the projectID.
45: */
46: public URI getProjectID() {
47: return projectID;
48: }
49:
50: /**
51: * @param projectID The projectID to set.
52: */
53: public void setProjectID(URI projectID) {
54: this .projectID = projectID;
55: }
56:
57: @Override
58: public int hashCode() {
59: int code;
60: code = mapID.hashCode();
61: return code;
62: }
63:
64: /**
65: * @return The name of the map
66: */
67: public String getName() {
68: return name;
69: }
70:
71: /**
72: * @param name The name to set.
73: */
74: public void setName(String name) {
75: this.name = name;
76: }
77:
78: }
|