Search this API

y.io.gml
Interface GMLTokenizer.Callback

All Known Implementing Classes:
EdgeGraphicsParser, EdgeParser, GMLTokenizer.DebugCallback, GMLTokenizer.EncoderCallback, GraphParser, HierarchicGraphParser, HierarchyNodeParser, InterEdgeParser, ItemParser, LabelGraphicsParser, LineParser, NodeGraphicsParser, NodeParser
Enclosing class:
GMLTokenizer

public static interface GMLTokenizer.Callback

The interface used for the callback during parsing.


Method Summary
 void attribute(String key, Number value)
          invoked when a numeric attribute was encountered
 void attribute(String key, String value)
          invoked when a string attributes was encountered
 void beginScope(String scopeName)
          called when a new gml scope begins '['
 void endScope(String scopeName)
          called when a scope is left
 

Method Detail

beginScope

void beginScope(String scopeName)
called when a new gml scope begins '['

Parameters:
scopeName - the name of the scope

endScope

void endScope(String scopeName)
called when a scope is left

Parameters:
scopeName - the name of the scope which was left

attribute

void attribute(String key,
               String value)
invoked when a string attributes was encountered

Parameters:
key - the key of the attribute value pair
value - the string value

attribute

void attribute(String key,
               Number value)
invoked when a numeric attribute was encountered

Parameters:
key - the key of the attribute value pair
value - the numeric value

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