treebolic.provider.xml.graph.gxl
Class GxlParser

java.lang.Object
  extended by treebolic.provider.xml.graph.AbstractParser
      extended by treebolic.provider.xml.graph.gxl.GxlParser

public class GxlParser
extends AbstractParser

GXL parser

Author:
Bernard Bou

Constructor Summary
GxlParser()
           
 
Method Summary
private static java.util.List<MenuItem> allocate(java.util.List<MenuItem> thisList, int i)
          Allocate menu item
protected  Graph parseGraph(org.w3c.dom.Document thisDocument)
          Parse graph
protected  Settings parseSettings(org.w3c.dom.Document thisDocument)
          Parse settings
 
Methods inherited from class treebolic.provider.xml.graph.AbstractParser
getFirstElementByTagName, getFirstLevel1ElementByTagName, getLevel1ChildElementsByTagName, parseModel, parseTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GxlParser

public GxlParser()
Method Detail

parseGraph

protected Graph parseGraph(org.w3c.dom.Document thisDocument)
Parse graph

Specified by:
parseGraph in class AbstractParser
Returns:
graph if successful

parseSettings

protected Settings parseSettings(org.w3c.dom.Document thisDocument)
Parse settings

Specified by:
parseSettings in class AbstractParser
Returns:
graph if successful

allocate

private static java.util.List<MenuItem> allocate(java.util.List<MenuItem> thisList,
                                                 int i)
Allocate menu item

Parameters:
thisList - current list of menu items
i - ith item to ensure allocation of
Returns:
menu item list on which get(k) will succeed