eu.etaxonomy.cdm.ext.geo
Class GeoServiceAreaAnnotatedMapping

java.lang.Object
  extended by eu.etaxonomy.cdm.ext.geo.GeoServiceAreaAnnotatedMapping
All Implemented Interfaces:
IGeoServiceAreaMapping

@Component
public class GeoServiceAreaAnnotatedMapping
extends Object
implements IGeoServiceAreaMapping

This class implements IGeoServiceAreaMapping. The mapping is stored as a technical annotation of the area. The area is saved while the mapping is set.

Author:
a.mueller

Constructor Summary
GeoServiceAreaAnnotatedMapping()
           
 
Method Summary
 void set(NamedArea area, GeoServiceArea geoServiceArea)
          Set the mapping.
 GeoServiceArea valueOf(NamedArea area)
          Transforms a CDM area to an geoservice area
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoServiceAreaAnnotatedMapping

public GeoServiceAreaAnnotatedMapping()
Method Detail

valueOf

public GeoServiceArea valueOf(NamedArea area)
Description copied from interface: IGeoServiceAreaMapping
Transforms a CDM area to an geoservice area

Specified by:
valueOf in interface IGeoServiceAreaMapping
Parameters:
area - the CDM NamedArea
Returns:
GeoServiceArea the geoservice area representing the CDM area

set

public void set(NamedArea area,
                GeoServiceArea geoServiceArea)
Description copied from interface: IGeoServiceAreaMapping
Set the mapping. Usually the mapping should be set in a persistent way, so it is available after restarting the application.

Specified by:
set in interface IGeoServiceAreaMapping


Copyright © 2007-2013 EDIT. All Rights Reserved.