Mercurial > dive4elements > river
changeset 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 (2012-08-29) |
parents | c657c0bbcf8f |
children | 70c0942156ad |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java flys-client/src/main/java/de/intevation/flys/client/shared/model/Module.java |
diffstat | 3 files changed, 47 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed Aug 29 08:00:44 2012 +0000 +++ b/flys-client/ChangeLog Wed Aug 29 10:39:16 2012 +0000 @@ -1,3 +1,9 @@ +2012-08-30 Bj�rn Ricks <bjoern.ricks@intevation.de> + + * src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java, + src/main/java/de/intevation/flys/client/shared/model/Module.java: + Added class representation of a module artifact. + 2012-08-29 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java Wed Aug 29 10:39:16 2012 +0000 @@ -0,0 +1,30 @@ +package de.intevation.flys.client.shared.model; + +public class DefaultModule implements Module { + + private String name; + private String localname; + + public DefaultModule() { + } + + public DefaultModule(String name, String localname) { + this.name = name; + this.localname = localname; + } + + /** + * Returns the name of the module + */ + public String getName() { + return this.name; + } + + /** + * Returns the localized name of the module + */ + public String getLocalizedName() { + return this.localname; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Module.java Wed Aug 29 10:39:16 2012 +0000 @@ -0,0 +1,11 @@ +package de.intevation.flys.client.shared.model; + +import java.io.Serializable; + +public interface Module extends Serializable { + + String getName(); + + String getLocalizedName(); +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :