annotate flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java @ 3514:1f293ada93d0

Added class representation of a module artifact flys-client/trunk@5288 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 29 Aug 2012 10:39:16 +0000
parents
children b5825159250e
rev   line source
3514
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.shared.model;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
2
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
3 public class DefaultModule implements Module {
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
4
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
5 private String name;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
6 private String localname;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
7
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
8 public DefaultModule() {
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
9 }
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
10
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
11 public DefaultModule(String name, String localname) {
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
12 this.name = name;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
13 this.localname = localname;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
14 }
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
15
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
16 /**
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
17 * Returns the name of the module
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
18 */
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
19 public String getName() {
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
20 return this.name;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
21 }
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
22
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
23 /**
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
24 * Returns the localized name of the module
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
25 */
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
26 public String getLocalizedName() {
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
27 return this.localname;
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
28 }
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
29 }
1f293ada93d0 Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :

http://dive4elements.wald.intevation.org