y.io.gml
Interface GMLTokenizer.Callback

All Known Implementing Classes:
GMLTokenizer.DebugCallback, GMLTokenizer.EncoderCallback, ItemParser
Enclosing interface:
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

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

Parameters:
scopeName - the name of the scope

endScope

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

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

attribute

public 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

public 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-2003,
yWorks GmbH.
All rights reserved.

2003