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


Constructor Summary
DatamartObject()
          Constructor
 
Method Summary
 java.lang.String getLinkForId(java.lang.String id)
          Recover the detail document link associated to a particular id.
 java.util.Map getLinks()
          Returns a list of couples id - link (map)
 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 setLinks(java.util.Map links)
          Sets the map of associations between ids and links
 void setValues(java.util.Map data)
          Sets the data map
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getLinkForId

public java.lang.String getLinkForId(java.lang.String id)
Recover the detail document link associated to a particular id. The method recovers from the data map the value link associated to the id

Parameters:
id - the id of the element
Returns:
the document detail link associated to the id

getLinks

public java.util.Map getLinks()
Returns a list of couples id - link (map)

Returns:
map of the link associated to ids

setLinks

public void setLinks(java.util.Map links)
Sets the map of associations between ids and links

Parameters:
links - the associations map