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(java.lang.String key, java.lang.Number value)
          invoked when a numeric attribute was encountered
 void attribute(java.lang.String key, java.lang.String value)
          invoked when a string attributes was encountered
 void beginScope(java.lang.String scopeName)
          called when a new gml scope begins '['
 void endScope(java.lang.String scopeName)
          called when a scope is left
 

Method Detail

beginScope

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

Parameters:
scopeName - the name of the scope

endScope

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

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

attribute

void attribute(java.lang.String key,
               java.lang.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(java.lang.String key,
               java.lang.Number value)
invoked when a numeric attribute was encountered

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

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