|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.toolbox.SceneTranslator.OldSceneParser
public static class SceneTranslator.OldSceneParser
OldSceneParser parses an XML file representing a single interpretation of a scene into a Scene data structure. This interpretation can then be used for testing purposes. It currently has the limitation that interprets all typed data as "SimpleData", because it doesn't know how to handle complex data.
Field Summary | |
---|---|
static String |
CONFIDENCE_TAG
Indicates the confidence of a scene element. |
static String |
DTD_1
The DTD for sketch files. |
static String |
DTD_URL
The URL where the DTD is stored. |
static String |
NAME_TAG
Indicates the name of scene element in a composite element. |
static String |
POINTS_TAG
Indicates the stroke path for a stroke element. |
static String |
PUBLIC_ID
The public identity of the sketch dtd file. |
static String |
SCENE_ELEMENT_TAG
Indicates a scene element. |
static String |
SCENE_TAG
Indicates the file contains a scene. |
static String |
STROKE_ELEMENT_TAG
Indicates a stroke element. |
static String |
TYPE_TAG
Indicates the type of scene element. |
Constructor Summary | |
---|---|
SceneTranslator.OldSceneParser()
|
Method Summary | |
---|---|
Object |
parse(Reader in)
Parse the input stream dictated by the given reader intoa scene. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PUBLIC_ID
public static final String DTD_URL
public static final String DTD_1
public static final String SCENE_TAG
public static final String SCENE_ELEMENT_TAG
public static final String STROKE_ELEMENT_TAG
public static final String TYPE_TAG
public static final String NAME_TAG
public static final String CONFIDENCE_TAG
public static final String POINTS_TAG
Constructor Detail |
---|
public SceneTranslator.OldSceneParser()
Method Detail |
---|
public Object parse(Reader in) throws Exception
parse
in interface ModelParser
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |