|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.io.gml.GMLTokenizer.EncoderCallback
An implementation of the callback, which will call the appropriate methods on an encoder. Can be used for transcoding purposes
Constructor Summary | |
GMLTokenizer.EncoderCallback(GMLEncoder enc)
constructs a new Transcoder |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GMLTokenizer.EncoderCallback(GMLEncoder enc)
enc
- the encoderMethod Detail |
public void beginScope(String scopeName)
GMLTokenizer.Callback
beginScope
in interface GMLTokenizer.Callback
scopeName
- the name of the scopepublic void endScope(String scopeName)
GMLTokenizer.Callback
endScope
in interface GMLTokenizer.Callback
scopeName
- the name of the scope which was leftpublic void attribute(String key, String value)
GMLTokenizer.Callback
attribute
in interface GMLTokenizer.Callback
key
- the key of the attribute value pairvalue
- the string valuepublic void attribute(String key, Number value)
GMLTokenizer.Callback
attribute
in interface GMLTokenizer.Callback
key
- the key of the attribute value pairvalue
- the numeric value
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |