Mercurial > dive4elements > framework
view artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java @ 278:9ad188df72f2
Facets are serializable now.
artifacts/trunk@2134 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 16 Jun 2011 13:24:54 +0000 |
parents | 0a579b71496b |
children | 7fbe674d758a |
line wrap: on
line source
package de.intevation.artifactdatabase.state; /** * The default implementation of a Facet. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class DefaultFacet implements Facet { /** The index of this facet.*/ protected int index; /** The name of this facet.*/ protected String name; /** The description of this facet.*/ protected String description; /** * The default constructor to create new Facet objects. * * @param name The name of this new facet. * @param description The description of this new facet. */ public DefaultFacet(String name, String description) { this(0, name, description); } /** * The default constructor to create new Facet objects. * * @param index The index of this new facet. * @param name The name of this new facet. * @param description The description of this new facet. */ public DefaultFacet(int index, String name, String description) { this.index = index; this.name = name; this.description = description; } public int getIndex() { return index; } public String getName() { return name; } public String getDescription() { return description; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :