|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.gml.GMLTokenizer.EncoderCallback
public static final class 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(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 |
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(java.lang.String scopeName)
GMLTokenizer.Callback
beginScope
in interface GMLTokenizer.Callback
scopeName
- the name of the scopepublic void endScope(java.lang.String scopeName)
GMLTokenizer.Callback
endScope
in interface GMLTokenizer.Callback
scopeName
- the name of the scope which was leftpublic void attribute(java.lang.String key, java.lang.String value)
GMLTokenizer.Callback
attribute
in interface GMLTokenizer.Callback
key
- the key of the attribute value pairvalue
- the string valuepublic void attribute(java.lang.String key, java.lang.Number value)
GMLTokenizer.Callback
attribute
in interface GMLTokenizer.Callback
key
- the key of the attribute value pairvalue
- the numeric value
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |