yext.graphml.reader
Class AbstractDOMInputHandler

java.lang.Object
  extended byyext.graphml.reader.AbstractDOMInputHandler
All Implemented Interfaces:
DOMInputHandler
Direct Known Subclasses:
PortConstraintInputHandler, PostprocessorInputHandler, ReadEdgeLayoutHandler, ReadEdgeRealizerHandler, ReadNodeLayoutHandler, ReadNodeRealizerHandler

public abstract class AbstractDOMInputHandler
extends Object
implements DOMInputHandler

Abstract implementation of the DOMInputHandler interface, which does basic conversion for yFiles.


Constructor Summary
AbstractDOMInputHandler()
           
 
Method Summary
 void applyDefault(DOMGraphMLParseContext context)
          This method is invoked when no data tag is defined, and the default value should be applied.
protected abstract  void applyDefault(DOMGraphMLParseContext context, Graph graph, Object nodeedge)
          Apply default data.
 void parseData(DOMGraphMLParseContext context, boolean defaultMode, Node domNode)
          Implementation of the method defined in the DOMInputHandler interface which forwards the call to parseData(org.graphdrawing.graphml.reader.dom.DOMGraphMLParseContext, y.base.Graph, java.lang.Object, boolean, org.w3c.dom.Node).
protected abstract  void parseData(DOMGraphMLParseContext context, Graph graph, Object nodeedge, boolean defaultMode, Node domNode)
          Parses the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.graphdrawing.graphml.reader.dom.DOMInputHandler
acceptKey
 

Constructor Detail

AbstractDOMInputHandler

public AbstractDOMInputHandler()
Method Detail

parseData

public void parseData(DOMGraphMLParseContext context,
                      boolean defaultMode,
                      Node domNode)
Implementation of the method defined in the DOMInputHandler interface which forwards the call to parseData(org.graphdrawing.graphml.reader.dom.DOMGraphMLParseContext, y.base.Graph, java.lang.Object, boolean, org.w3c.dom.Node).

Specified by:
parseData in interface DOMInputHandler
Parameters:
context - The context in which the parser is.
defaultMode - Whether default data or real data is read.
domNode - The DOM node which is actually processed.

applyDefault

public void applyDefault(DOMGraphMLParseContext context)
Description copied from interface: DOMInputHandler
This method is invoked when no data tag is defined, and the default value should be applied.

Specified by:
applyDefault in interface DOMInputHandler
Parameters:
context - the current parse context.

parseData

protected abstract void parseData(DOMGraphMLParseContext context,
                                  Graph graph,
                                  Object nodeedge,
                                  boolean defaultMode,
                                  Node domNode)
Parses the data.

Parameters:
context - The context in which the parser is.
graph - The current graph in the parse context.
nodeedge - The current node/edge in the parse context.
defaultMode - Whether default data or real data is read.
domNode - The DOM node which is actually processed.

applyDefault

protected abstract void applyDefault(DOMGraphMLParseContext context,
                                     Graph graph,
                                     Object nodeedge)
Apply default data.

Parameters:
context - The context in which the parser is.
graph - The current graph in the parse context.
nodeedge - The current node/edge in the parse context.


Copyright ©2000-2008, yWorks GmbH. All rights reserved.