it.eng.spagobi.geo.datamart
Class DatamartObject

java.lang.Object
  extended by it.eng.spagobi.geo.datamart.DatamartObject

public class DatamartObject
extends java.lang.Object

Contains the data recovered from the datawarehouse and associated to the svg map


Field Summary
private  java.util.Map values
          Mpa of id and values related to the svg map
 
Constructor Summary
DatamartObject()
          Constructor
 
Method Summary
 java.lang.String getStyleForId(java.lang.String id, MapConfiguration conf)
          Recover the svg style associated to a particular id.
 java.util.Map getValues()
          Returns the data map
 boolean hasId(java.lang.String id)
          checks if the data map contains an id (as a key)
 void setValues(java.util.Map data)
          Sets the data map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

private java.util.Map values
Mpa of id and values related to the svg map

Constructor Detail

DatamartObject

public DatamartObject()
Constructor

Method Detail

getValues

public java.util.Map getValues()
Returns the data map

Returns:
the data map

setValues

public void setValues(java.util.Map data)
Sets the data map

Parameters:
data - map of data recovered from datawarehouse

hasId

public boolean hasId(java.lang.String id)
checks if the data map contains an id (as a key)

Parameters:
id - the id to check
Returns:
true if the id is contained, falses otherwise

getStyleForId

public java.lang.String getStyleForId(java.lang.String id,
                                      MapConfiguration conf)
Recover the svg style associated to a particular id. The method recovers from the data map the value associated to the id and then, using the value, it recovers the svg style associated to the value (from the document template)

Parameters:
id - the id of the element
conf - The configuration of the map
Returns:
the svg style string assocaited to the id