Mercurial > dive4elements > framework
changeset 251:9e12f3fbcf78
Added a method to add new facets to an output.
artifacts/trunk@1742 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 21 Apr 2011 13:43:24 +0000 |
parents | 366cf4694d45 |
children | 6de74b0b878e |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java |
diffstat | 3 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Apr 14 13:24:35 2011 +0000 +++ b/ChangeLog Thu Apr 21 13:43:24 2011 +0000 @@ -1,3 +1,9 @@ +2011-04-21 Ingo Weinzierl <ingo@intevation.de> + + * artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java, + artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java: + Added a method to add further facets. + 2011-04-14 Ingo Weinzierl <ingo@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Thu Apr 14 13:24:35 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Thu Apr 21 13:43:24 2011 +0000 @@ -1,5 +1,6 @@ package de.intevation.artifactdatabase.state; +import java.util.ArrayList; import java.util.List; /** @@ -29,6 +30,7 @@ this.name = name; this.description = description; this.mimeType = mimeType; + this.facets = new ArrayList<Facet>(); } @@ -90,5 +92,10 @@ public List<Facet> getFacets() { return facets; } + + + public void addFacet(Facet facet) { + facets.add(facet); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Thu Apr 14 13:24:35 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Thu Apr 21 13:43:24 2011 +0000 @@ -35,5 +35,12 @@ * @return the facets of this output. */ public List<Facet> getFacets(); + + /** + * Add a new facet to this output. + * + * @param facet The new facet. + */ + public void addFacet(Facet facet); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :