comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java @ 3:9cf5a40b62c7

Added an interface and a default implementation of a Collection. flys-client/trunk@1311 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Feb 2011 14:45:14 +0000
parents
children 14bf7895a2ec
comparison
equal deleted inserted replaced
2:bc5d4d2297b9 3:9cf5a40b62c7
1 package de.intevation.flys.client.shared.model;
2
3 import java.util.Date;
4
5
6 /**
7 * The default implementation of a {@link Collection}.
8 *
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
10 */
11 public class DefaultCollection implements Collection {
12
13 /** The uuid of the collection. */
14 protected String uuid;
15
16
17 /**
18 * Creates a new DefaultCollection with a UUID.
19 *
20 * @param uuid The UUID.
21 */
22 public DefaultCollection(String uuid) {
23 this.uuid = uuid;
24 }
25
26
27 public Date getLastAccess() {
28 return new Date();
29 }
30
31
32 public String getName() {
33 return uuid;
34 }
35 }
36 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org