1 package eu
.etaxonomy
.cdm
.ext
.geo
;
3 import javax
.xml
.stream
.XMLStreamException
;
5 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
8 * Class that offers mapping functionality from a CDM {@link NamedArea named area}
9 * to a {@link GeoServiceArea geo service data holder} class.
10 * It also offers mapping definition functionality.<BR>
11 * The mapping is unidirectional.
17 public interface IGeoServiceAreaMapping
{
20 * Transforms a CDM area to an geoservice area
21 * @param area the CDM NamedArea
22 * @return GeoServiceArea the geoservice area representing the CDM area
24 public GeoServiceArea
valueOf(NamedArea area
);
27 * Set the mapping. Usually the mapping should be set in a persistent way, so it is
28 * available after restarting the application.
30 * @param geoServiceArea
31 * @throws XMLStreamException
33 public void set(NamedArea area
, GeoServiceArea geoServiceArea
);