it.eng.spagobi.geo.configuration
Class MapConfiguration

java.lang.Object
  extended by it.eng.spagobi.geo.configuration.MapConfiguration

public class MapConfiguration
extends java.lang.Object


Field Summary
private  it.eng.spago.base.SourceBean datamartProviderConfiguration
           
private  it.eng.spago.base.SourceBean legenda
           
private  java.lang.String mapName
           
private  it.eng.spago.base.SourceBean mapProviderConfiguration
           
 
Constructor Summary
MapConfiguration(byte[] template, it.eng.spago.base.SourceBean servReq)
          Builds the MapConfiguration object loading configuration from xml template into SourceBeans
 
Method Summary
private  boolean containsParameters(java.lang.String query)
          Checks if a query has some parameters
 it.eng.spago.base.SourceBean getDatamartProviderConfiguration()
          Gets the DatamartProvider Configuration
 java.lang.String getLegend()
          Builds the svg code used for the legend rendering
 java.lang.String getMapName()
          Gets the map name
 it.eng.spago.base.SourceBean getMapProviderConfiguration()
          Gets the MapProvider Configuration
 java.lang.String getStyle(int value)
          Recovers the svg style associated to the level of the legend which contains the value
 void setDatamartProviderConfiguration(it.eng.spago.base.SourceBean datamartProviderConfiguration)
          Sets the DatamartProvider Configuration
 void setMapName(java.lang.String mapName)
          Sets the map name
 void setMapProviderConfiguration(it.eng.spago.base.SourceBean mapProviderConfiguration)
          Sets the MapProvider Configuration
private  java.lang.String substituteParameters(java.lang.String query, it.eng.spago.base.SourceBean servReq)
          Substitutes the parameter names of the query with the value of the same-name parameter, contained into request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapName

private java.lang.String mapName

mapProviderConfiguration

private it.eng.spago.base.SourceBean mapProviderConfiguration

datamartProviderConfiguration

private it.eng.spago.base.SourceBean datamartProviderConfiguration

legenda

private it.eng.spago.base.SourceBean legenda
Constructor Detail

MapConfiguration

public MapConfiguration(byte[] template,
                        it.eng.spago.base.SourceBean servReq)
                 throws ConfigurationException
Builds the MapConfiguration object loading configuration from xml template into SourceBeans

Parameters:
template - The byte array of the xml template
Throws:
ConfigurationException - raised If some configurations is missing or wrong
Method Detail

containsParameters

private boolean containsParameters(java.lang.String query)
Checks if a query has some parameters

Parameters:
query - the query to check
Returns:
true if the query contains parameters, false otherwise

substituteParameters

private java.lang.String substituteParameters(java.lang.String query,
                                              it.eng.spago.base.SourceBean servReq)
Substitutes the parameter names of the query with the value of the same-name parameter, contained into request

Parameters:
query - the query containing parameters
servReq - the Spago ServiceRequest
Returns:
the new query (with parameter names substituted)

getStyle

public java.lang.String getStyle(int value)
Recovers the svg style associated to the level of the legend which contains the value

Parameters:
value - The value associated to an svg element of the map
Returns:
the svg style associated to the level of the legend which contains the value

getLegend

public java.lang.String getLegend()
Builds the svg code used for the legend rendering

Returns:
the svg code of the legend

getMapName

public java.lang.String getMapName()
Gets the map name

Returns:
the map name

setMapName

public void setMapName(java.lang.String mapName)
Sets the map name

Parameters:
mapName - the map name

getDatamartProviderConfiguration

public it.eng.spago.base.SourceBean getDatamartProviderConfiguration()
Gets the DatamartProvider Configuration

Returns:
SourceBean that contains the configuration

setDatamartProviderConfiguration

public void setDatamartProviderConfiguration(it.eng.spago.base.SourceBean datamartProviderConfiguration)
Sets the DatamartProvider Configuration

Parameters:
datamartProviderConfiguration - SourceBean that contains the configuration

getMapProviderConfiguration

public it.eng.spago.base.SourceBean getMapProviderConfiguration()
Gets the MapProvider Configuration

Returns:
SourceBean that contains the configuration

setMapProviderConfiguration

public void setMapProviderConfiguration(it.eng.spago.base.SourceBean mapProviderConfiguration)
Sets the MapProvider Configuration

Parameters:
mapProviderConfiguration - SourceBean that contains the configuration