com.oy.shared.lm.in
Class OJBtoGRAPH

java.lang.Object
  extended bycom.oy.shared.lm.in.OJBtoGRAPH

public class OJBtoGRAPH
extends java.lang.Object


Field Summary
(package private) static int COLOR_LINE_COLLECTION
           
(package private) static int COLOR_LINE_REFERENCE
           
(package private) static int COLOR_NORMAL
           
private  java.lang.String[] colors
           
private  Graph graph
           
private  java.util.Map nameToNode
           
private  java.util.Map nodeToGroup
           
private  TaskOptions options
           
private  java.lang.StringBuffer sbLabel
           
 
Constructor Summary
(package private) OJBtoGRAPH()
           
 
Method Summary
private  java.lang.String formatNodeName(java.lang.String name)
           
private  java.lang.String getLabelForFields(java.util.List nodes)
           
private  GraphNode getOrCreateNode(java.lang.String name)
           
private  IGraphModel innerLoad(TaskOptions options)
           
static IGraphModel load(TaskOptions options)
           
private  void processClassDescList(java.util.List nodes)
           
private  void processCollectionDescList(GraphNode parent, java.util.List nodes)
           
private  void processExtendDescList(GraphNode parent, java.util.List nodes)
           
private  void processReferenceDescList(GraphNode parent, java.util.List nodes)
           
private  void styleNode(GraphNode node, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sbLabel

private java.lang.StringBuffer sbLabel

graph

private Graph graph

nameToNode

private java.util.Map nameToNode

nodeToGroup

private java.util.Map nodeToGroup

options

private TaskOptions options

colors

private java.lang.String[] colors

COLOR_NORMAL

static final int COLOR_NORMAL
See Also:
Constant Field Values

COLOR_LINE_REFERENCE

static final int COLOR_LINE_REFERENCE
See Also:
Constant Field Values

COLOR_LINE_COLLECTION

static final int COLOR_LINE_COLLECTION
See Also:
Constant Field Values
Constructor Detail

OJBtoGRAPH

OJBtoGRAPH()
Method Detail

load

public static IGraphModel load(TaskOptions options)
                        throws java.io.IOException,
                               org.xml.sax.SAXException,
                               javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

innerLoad

private IGraphModel innerLoad(TaskOptions options)
                       throws java.io.IOException,
                              org.xml.sax.SAXException,
                              javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

processClassDescList

private void processClassDescList(java.util.List nodes)

getLabelForFields

private java.lang.String getLabelForFields(java.util.List nodes)

processReferenceDescList

private void processReferenceDescList(GraphNode parent,
                                      java.util.List nodes)

processExtendDescList

private void processExtendDescList(GraphNode parent,
                                   java.util.List nodes)

processCollectionDescList

private void processCollectionDescList(GraphNode parent,
                                       java.util.List nodes)

getOrCreateNode

private GraphNode getOrCreateNode(java.lang.String name)

formatNodeName

private java.lang.String formatNodeName(java.lang.String name)

styleNode

private void styleNode(GraphNode node,
                       java.lang.String name)


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