com.sparsity.dex.gdb
Class DefaultExport

java.lang.Object
  extended by com.sparsity.dex.gdb.ExportManager
      extended by com.sparsity.dex.gdb.DefaultExport

public class DefaultExport
extends ExportManager

Default implementation for ExportManager class.

It uses the default values from GraphExport, NodeExport and EdgeExport to export all node and edge types.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
DefaultExport()
          Creates a new instance.
 
Method Summary
 boolean enableType(int type)
          ExportManager::EnableType.
 boolean getEdge(long edge, EdgeExport edgeExport)
          ExportManager::GetEdge.
 boolean getEdgeType(int type, EdgeExport edgeExport)
          ExportManager::GetEdgeType.
 boolean getGraph(GraphExport graphExport)
          ExportManager::GetGraph.
 boolean getNode(long node, NodeExport nodeExport)
          ExportManager::GetNode.
 boolean getNodeType(int type, NodeExport nodeExport)
          ExportManager::GetNodeType.
 void prepare(Graph graph)
          ExportManager::Prepare.
 void release()
          ExportManager::Release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExport

public DefaultExport()
Creates a new instance.

Method Detail

enableType

public boolean enableType(int type)
ExportManager::EnableType.

This enables all node and edge types to be exported.

Overrides:
enableType in class ExportManager
Parameters:
type - null
Returns:
TRUE.

getEdge

public boolean getEdge(long edge,
                       EdgeExport edgeExport)
ExportManager::GetEdge.

This sets the default EdgeExport values and sets the OID as the label. Also, it exports the edge as directed just if the edge is directed.

Overrides:
getEdge in class ExportManager
Parameters:
edge - null
edgeExport - null
Returns:
TRUE.

getGraph

public boolean getGraph(GraphExport graphExport)
ExportManager::GetGraph.

This sets the default GraphExport values and "Graph" as the label.

Overrides:
getGraph in class ExportManager
Parameters:
graphExport - null
Returns:
TRUE.

getEdgeType

public boolean getEdgeType(int type,
                           EdgeExport edgeExport)
ExportManager::GetEdgeType.

This sets de default EdgeExport values.

Overrides:
getEdgeType in class ExportManager
Parameters:
type - null
edgeExport - null
Returns:
TRUE.

getNodeType

public boolean getNodeType(int type,
                           NodeExport nodeExport)
ExportManager::GetNodeType.

This sets de default NodeExport values.

Overrides:
getNodeType in class ExportManager
Parameters:
type - null
nodeExport - null
Returns:
TRUE.

release

public void release()
ExportManager::Release.

Overrides:
release in class ExportManager

getNode

public boolean getNode(long node,
                       NodeExport nodeExport)
ExportManager::GetNode.

This sets the default NodeExport values and sets the OID as the label.

Overrides:
getNode in class ExportManager
Parameters:
node - null
nodeExport - null
Returns:
TRUE.

prepare

public void prepare(Graph graph)
ExportManager::Prepare.

Overrides:
prepare in class ExportManager
Parameters:
graph - null