Mercurial > dive4elements > framework
changeset 296:a8e009ebe13c
Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
artifacts/trunk@2358 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 19 Jul 2011 06:59:19 +0000 |
parents | e5bc48dc3ec3 |
children | 694d818e99b2 |
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, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jul 18 15:05:20 2011 +0000 +++ b/ChangeLog Tue Jul 19 06:59:19 2011 +0000 @@ -1,3 +1,9 @@ +2011-07-19 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 a list of Facets. + 2011-07-18 Ingo Weinzierl <ingo@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/state/Facet.java,
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Mon Jul 18 15:05:20 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Tue Jul 19 06:59:19 2011 +0000 @@ -132,5 +132,10 @@ public void addFacet(Facet facet) { facets.add(facet); } + + + public void addFacets(List<Facet> facets) { + this.facets.addAll(facets); + } } // 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 Mon Jul 18 15:05:20 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Tue Jul 19 06:59:19 2011 +0000 @@ -50,5 +50,12 @@ * @param facet The new facet. */ public void addFacet(Facet facet); + + /** + * Add a list of facet to this output. + * + * @param facets A list of facets. + */ + public void addFacets(List<Facet> facets); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :