Mercurial > dive4elements > river
comparison flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultFacet.java @ 5834:f507086aa94b
Repaired internal references.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:31:32 +0200 |
parents | flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultFacet.java@5277f46a63c2 |
children | 821a02bbfb4e |
comparison
equal
deleted
inserted
replaced
5833:a2bdc0f524e8 | 5834:f507086aa94b |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 | |
4 /** | |
5 * The default implementation of a Facet. | |
6 * | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public class DefaultFacet implements Facet { | |
10 | |
11 /** The name of the facet.*/ | |
12 protected String name; | |
13 | |
14 /** The description of the facet.*/ | |
15 protected String description; | |
16 | |
17 /** The index of the facet.*/ | |
18 protected int index; | |
19 | |
20 | |
21 /** | |
22 * An empty constructor. | |
23 */ | |
24 public DefaultFacet() { | |
25 } | |
26 | |
27 | |
28 /** | |
29 * The default constructor to create new DefaultFacets. | |
30 * | |
31 * @param name The name of the facet. | |
32 */ | |
33 public DefaultFacet(String name) { | |
34 this.name = name; | |
35 } | |
36 | |
37 | |
38 public DefaultFacet(String name, int index, String description) { | |
39 this(name); | |
40 | |
41 this.index = index; | |
42 this.description = description; | |
43 } | |
44 | |
45 | |
46 public String getName() { | |
47 return name; | |
48 } | |
49 | |
50 | |
51 public String getDescription() { | |
52 return description; | |
53 } | |
54 | |
55 | |
56 public int getIndex() { | |
57 return index; | |
58 } | |
59 } | |
60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |