com.oy.shared.lm.ext
Class HBMCtoGRAPH

java.lang.Object
  extended bycom.oy.shared.lm.ext.HBMCtoGRAPH

public class HBMCtoGRAPH
extends java.lang.Object


Nested Class Summary
(package private)  class HBMCtoGRAPH.Attribute
           
 
Field Summary
private static java.lang.String ANON_CLASS
           
private  java.lang.String[] colors
           
private  Graph graph
           
private  java.util.Map nameToNode
           
private  TaskOptions options
           
 
Constructor Summary
(package private) HBMCtoGRAPH()
           
 
Method Summary
private  void addCollectionProp(Property prop, GraphNode current)
           
private  HBMCtoGRAPH.Attribute addSimpleProp(SimpleValue val, java.lang.String name)
           
private  void addToOneProp(Property prop, GraphNode current)
           
private  GraphNode getOrCreateNode(java.lang.String name)
           
private  IGraphModel innerLoad(TaskOptions options, Configuration conf)
           
private  java.util.List iterToList(java.util.Iterator iter)
           
static IGraphModel load(TaskOptions options)
           
static IGraphModel load(TaskOptions options, Configuration conf)
           
private  void processClasses(PersistentClass[] nodes)
           
private  void processProperties(java.util.Iterator iter, GraphNode current)
           
private  void processSubclasses(GraphNode parent, PersistentClass[] nodes)
           
private  java.lang.String renderAttributes(HBMCtoGRAPH.Attribute[] attrs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANON_CLASS

private static final java.lang.String ANON_CLASS
See Also:
Constant Field Values

graph

private Graph graph

nameToNode

private java.util.Map nameToNode

options

private TaskOptions options

colors

private java.lang.String[] colors
Constructor Detail

HBMCtoGRAPH

HBMCtoGRAPH()
Method Detail

load

public static IGraphModel load(TaskOptions options)
                        throws java.io.IOException
Throws:
java.io.IOException

load

public static IGraphModel load(TaskOptions options,
                               Configuration conf)
                        throws java.io.IOException
Throws:
java.io.IOException

renderAttributes

private java.lang.String renderAttributes(HBMCtoGRAPH.Attribute[] attrs)

iterToList

private java.util.List iterToList(java.util.Iterator iter)

innerLoad

private IGraphModel innerLoad(TaskOptions options,
                              Configuration conf)
                       throws java.io.IOException
Throws:
java.io.IOException

processClasses

private void processClasses(PersistentClass[] nodes)

processSubclasses

private void processSubclasses(GraphNode parent,
                               PersistentClass[] nodes)

processProperties

private void processProperties(java.util.Iterator iter,
                               GraphNode current)

addSimpleProp

private HBMCtoGRAPH.Attribute addSimpleProp(SimpleValue val,
                                            java.lang.String name)

addToOneProp

private void addToOneProp(Property prop,
                          GraphNode current)

addCollectionProp

private void addCollectionProp(Property prop,
                               GraphNode current)

getOrCreateNode

private GraphNode getOrCreateNode(java.lang.String name)


Copyright (C) 2005-2006 Pavel Simakov
http://www.softwaresecretweapons.com