Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 4496:d8992459b408
Add method to return the facets of an artifact
This methos should be used to get the facets of an artifact instead of accessing
the facets member variable directly.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 11:11:04 +0100 |
parents | c095eb67c975 |
children | a2735a4bf75e |
comparison
equal
deleted
inserted
replaced
4495:c095eb67c975 | 4496:d8992459b408 |
---|---|
1549 | 1549 |
1550 toDestroy.add(getCurrentStateId()); | 1550 toDestroy.add(getCurrentStateId()); |
1551 | 1551 |
1552 destroyStates(toDestroy, context); | 1552 destroyStates(toDestroy, context); |
1553 } | 1553 } |
1554 | |
1555 /** | |
1556 * Return the Facets which a state provides | |
1557 * @param stateid String that identifies the state | |
1558 * @return List of Facets belonging to the state identifier | |
1559 */ | |
1560 protected List<Facet> getFacets(String stateid) { | |
1561 return this.facets.get(stateid); | |
1562 } | |
1554 } | 1563 } |
1555 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 1564 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |