Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java @ 277:0a579b71496b
Facets have indices now.
artifacts/trunk@2125 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 15 Jun 2011 14:16:04 +0000 |
parents | 41404961c804 |
children | 7fbe674d758a |
comparison
equal
deleted
inserted
replaced
276:8b58259d3dd3 | 277:0a579b71496b |
---|---|
5 * The default implementation of a Facet. | 5 * The default implementation of a Facet. |
6 * | 6 * |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
8 */ | 8 */ |
9 public class DefaultFacet implements Facet { | 9 public class DefaultFacet implements Facet { |
10 | |
11 /** The index of this facet.*/ | |
12 protected int index; | |
10 | 13 |
11 /** The name of this facet.*/ | 14 /** The name of this facet.*/ |
12 protected String name; | 15 protected String name; |
13 | 16 |
14 /** The description of this facet.*/ | 17 /** The description of this facet.*/ |
20 * | 23 * |
21 * @param name The name of this new facet. | 24 * @param name The name of this new facet. |
22 * @param description The description of this new facet. | 25 * @param description The description of this new facet. |
23 */ | 26 */ |
24 public DefaultFacet(String name, String description) { | 27 public DefaultFacet(String name, String description) { |
28 this(0, name, description); | |
29 } | |
30 | |
31 | |
32 /** | |
33 * The default constructor to create new Facet objects. | |
34 * | |
35 * @param index The index of this new facet. | |
36 * @param name The name of this new facet. | |
37 * @param description The description of this new facet. | |
38 */ | |
39 public DefaultFacet(int index, String name, String description) { | |
40 this.index = index; | |
25 this.name = name; | 41 this.name = name; |
26 this.description = description; | 42 this.description = description; |
43 } | |
44 | |
45 | |
46 public int getIndex() { | |
47 return index; | |
27 } | 48 } |
28 | 49 |
29 | 50 |
30 public String getName() { | 51 public String getName() { |
31 return name; | 52 return name; |