comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 3934:33fcc786f246

Add FLYSArtifact addFacets method flys-artifacts/trunk@5634 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 28 Sep 2012 08:39:36 +0000
parents 8483d190b2e7
children 975f608dd254
comparison
equal deleted inserted replaced
3933:608e127fc0f5 3934:33fcc786f246
1394 if (generateFacets) { 1394 if (generateFacets) {
1395 if (fs.isEmpty()) { 1395 if (fs.isEmpty()) {
1396 facets.remove(stateID); 1396 facets.remove(stateID);
1397 } 1397 }
1398 else { 1398 else {
1399 facets.put(stateID, fs); 1399 addFacets(stateID, fs);
1400 } 1400 }
1401 } 1401 }
1402 } 1402 }
1403 }
1404
1405 /**
1406 * Sets the facets for an ID
1407 *
1408 * Normally the id is a state ID.
1409 *
1410 * @param id ID to map the facets to
1411 * @param facets List of facets to be stored
1412 */
1413 protected void addFacets(String id, List<Facet> facets) {
1414 this.facets.put(id, facets);
1403 } 1415 }
1404 1416
1405 1417
1406 /** 1418 /**
1407 * Method to dump the artifacts state/data. 1419 * Method to dump the artifacts state/data.

http://dive4elements.wald.intevation.org