it.eng.spagobi.engines.geo.map.provider
Class AbstractMapProvider

java.lang.Object
  extended by it.eng.spagobi.engines.geo.AbstractGeoEngineComponent
      extended by it.eng.spagobi.engines.geo.map.provider.AbstractMapProvider
All Implemented Interfaces:
IGeoEngineComponent, IMapProvider
Direct Known Subclasses:
SOMapProvider

public class AbstractMapProvider
extends AbstractGeoEngineComponent
implements IMapProvider

The Class AbstractMapProvider.

Author:
Andrea Gioia (andrea.gioia@eng.it)

Field Summary
static org.apache.log4j.Logger logger
          Logger component.
 
Constructor Summary
AbstractMapProvider()
          Instantiates a new abstract map provider.
 
Method Summary
 java.util.List getFeatureNamesInMap(java.lang.String mapName)
          Gets the feature names in map.
 java.util.List getMapNamesByFeature(java.lang.String featureName)
          Gets the map names by feature.
 java.lang.String getSelectedMapName()
          Gets the selected map name.
 org.w3c.dom.svg.SVGDocument getSVGMapDOMDocument()
          Gets the sVG map dom document.
 org.w3c.dom.svg.SVGDocument getSVGMapDOMDocument(java.lang.String mapName)
          Gets the sVG map dom document.
 javax.xml.stream.XMLStreamReader getSVGMapStreamReader()
          Gets the sVG map stream reader.
 javax.xml.stream.XMLStreamReader getSVGMapStreamReader(java.lang.String mapName)
          Gets the sVG map stream reader.
 void init(java.lang.Object conf)
          Inits the.
 void setSelectedMapName(java.lang.String selectedMapName)
          Sets the selected map name.
 
Methods inherited from class it.eng.spagobi.engines.geo.AbstractGeoEngineComponent
getConf, getEnv, setEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.engines.geo.IGeoEngineComponent
setEnv
 

Field Detail

logger

public static transient org.apache.log4j.Logger logger
Logger component.

Constructor Detail

AbstractMapProvider

public AbstractMapProvider()
Instantiates a new abstract map provider.

Method Detail

init

public void init(java.lang.Object conf)
          throws GeoEngineException
Description copied from interface: IGeoEngineComponent
Inits the.

Specified by:
init in interface IGeoEngineComponent
Overrides:
init in class AbstractGeoEngineComponent
Parameters:
conf - the conf
Throws:
GeoEngineException - the geo engine exception

getSVGMapStreamReader

public javax.xml.stream.XMLStreamReader getSVGMapStreamReader()
                                                       throws GeoEngineException
Description copied from interface: IMapProvider
Gets the sVG map stream reader.

Specified by:
getSVGMapStreamReader in interface IMapProvider
Returns:
the sVG map stream reader
Throws:
GeoEngineException - the geo engine exception

getSVGMapStreamReader

public javax.xml.stream.XMLStreamReader getSVGMapStreamReader(java.lang.String mapName)
                                                       throws GeoEngineException
Description copied from interface: IMapProvider
Gets the sVG map stream reader.

Specified by:
getSVGMapStreamReader in interface IMapProvider
Parameters:
mapName - the map name
Returns:
the sVG map stream reader
Throws:
GeoEngineException - the geo engine exception

getSVGMapDOMDocument

public org.w3c.dom.svg.SVGDocument getSVGMapDOMDocument()
                                                 throws GeoEngineException
Description copied from interface: IMapProvider
Gets the sVG map dom document.

Specified by:
getSVGMapDOMDocument in interface IMapProvider
Returns:
the sVG map dom document
Throws:
GeoEngineException - the geo engine exception

getSVGMapDOMDocument

public org.w3c.dom.svg.SVGDocument getSVGMapDOMDocument(java.lang.String mapName)
                                                 throws GeoEngineException
Description copied from interface: IMapProvider
Gets the sVG map dom document.

Specified by:
getSVGMapDOMDocument in interface IMapProvider
Parameters:
mapName - the map name
Returns:
the sVG map dom document
Throws:
GeoEngineException - the geo engine exception

getSelectedMapName

public java.lang.String getSelectedMapName()
Description copied from interface: IMapProvider
Gets the selected map name.

Specified by:
getSelectedMapName in interface IMapProvider
Returns:
the selected map name

setSelectedMapName

public void setSelectedMapName(java.lang.String selectedMapName)
Description copied from interface: IMapProvider
Sets the selected map name.

Specified by:
setSelectedMapName in interface IMapProvider
Parameters:
selectedMapName - the new selected map name

getMapNamesByFeature

public java.util.List getMapNamesByFeature(java.lang.String featureName)
                                    throws java.lang.Exception
Description copied from interface: IMapProvider
Gets the map names by feature.

Specified by:
getMapNamesByFeature in interface IMapProvider
Parameters:
featureName - the feature name
Returns:
the map names by feature
Throws:
java.lang.Exception - the exception

getFeatureNamesInMap

public java.util.List getFeatureNamesInMap(java.lang.String mapName)
                                    throws java.lang.Exception
Description copied from interface: IMapProvider
Gets the feature names in map.

Specified by:
getFeatureNamesInMap in interface IMapProvider
Parameters:
mapName - the map name
Returns:
the feature names in map
Throws:
java.lang.Exception - the exception