it.eng.spagobi.engines.network.bean
Class JSONNetwork

java.lang.Object
  extended by it.eng.spagobi.engines.network.bean.JSONNetwork
All Implemented Interfaces:
INetwork

public class JSONNetwork
extends java.lang.Object
implements INetwork


Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
JSONNetwork()
           
JSONNetwork(NetworkTemplate template)
           
 
Method Summary
 void addEdge(Edge e)
           
 void addEdgeValueProperties(Edge edge)
           
 void addNode(Node n)
           
 void addSourceNodeValueProperties(Node node)
           
 void addTargetNodeValueProperties(Node node)
           
 java.util.Map<java.lang.String,java.util.Set<JSONNetworkMappingMetadata>> getDataSchema()
           
 java.util.Set<Edge> getEdges()
           
 java.lang.String getMappingForEdge(java.lang.String column)
           
 java.lang.String getMappingForNodeSource(java.lang.String column)
           
 java.lang.String getMappingForNodeTarget(java.lang.String column)
           
 java.lang.String getNetworkAsString()
          JSON serializer for this object
 java.lang.String getNetworkCrossNavigation()
          Serializer for the cross navigation structure
 java.lang.String getNetworkInfo()
           
 java.lang.String getNetworkOptions()
           
 java.lang.String getNetworkType()
           
 java.util.Set<Node> getNodes()
           
 void setNetworkCrossNavigation(CrossNavigationLink networkCrossNavigation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static transient org.apache.log4j.Logger logger
Constructor Detail

JSONNetwork

public JSONNetwork()

JSONNetwork

public JSONNetwork(NetworkTemplate template)
Method Detail

getNodes

public java.util.Set<Node> getNodes()

getEdges

public java.util.Set<Edge> getEdges()

addNode

public void addNode(Node n)

addEdge

public void addEdge(Edge e)

getDataSchema

public java.util.Map<java.lang.String,java.util.Set<JSONNetworkMappingMetadata>> getDataSchema()

getNetworkType

public java.lang.String getNetworkType()
Specified by:
getNetworkType in interface INetwork

getNetworkOptions

public java.lang.String getNetworkOptions()
Specified by:
getNetworkOptions in interface INetwork

getMappingForNodeSource

public java.lang.String getMappingForNodeSource(java.lang.String column)

getMappingForNodeTarget

public java.lang.String getMappingForNodeTarget(java.lang.String column)

getMappingForEdge

public java.lang.String getMappingForEdge(java.lang.String column)

getNetworkInfo

public java.lang.String getNetworkInfo()
Specified by:
getNetworkInfo in interface INetwork

addTargetNodeValueProperties

public void addTargetNodeValueProperties(Node node)

addSourceNodeValueProperties

public void addSourceNodeValueProperties(Node node)

addEdgeValueProperties

public void addEdgeValueProperties(Edge edge)

setNetworkCrossNavigation

public void setNetworkCrossNavigation(CrossNavigationLink networkCrossNavigation)

getNetworkAsString

public java.lang.String getNetworkAsString()
                                    throws SerializationException
JSON serializer for this object

Specified by:
getNetworkAsString in interface INetwork
Returns:
the network serialized
Throws:
SerializationException

getNetworkCrossNavigation

public java.lang.String getNetworkCrossNavigation()
                                           throws SerializationException
Serializer for the cross navigation structure

Specified by:
getNetworkCrossNavigation in interface INetwork
Throws:
SerializationException