diva.sketch.toolbox
Class SceneTranslator.OldSceneParser

java.lang.Object
  extended by diva.sketch.toolbox.SceneTranslator.OldSceneParser
All Implemented Interfaces:
ModelParser
Enclosing class:
SceneTranslator

public static class SceneTranslator.OldSceneParser
extends Object
implements ModelParser

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_ID

public static final String PUBLIC_ID
The public identity of the sketch dtd file.

See Also:
Constant Field Values

DTD_URL

public static final String DTD_URL
The URL where the DTD is stored.

See Also:
Constant Field Values

DTD_1

public static final String DTD_1
The DTD for sketch files.

See Also:
Constant Field Values

SCENE_TAG

public static final String SCENE_TAG
Indicates the file contains a scene.

See Also:
Constant Field Values

SCENE_ELEMENT_TAG

public static final String SCENE_ELEMENT_TAG
Indicates a scene element.

See Also:
Constant Field Values

STROKE_ELEMENT_TAG

public static final String STROKE_ELEMENT_TAG
Indicates a stroke element.

See Also:
Constant Field Values

TYPE_TAG

public static final String TYPE_TAG
Indicates the type of scene element.

See Also:
Constant Field Values

NAME_TAG

public static final String NAME_TAG
Indicates the name of scene element in a composite element.

See Also:
Constant Field Values

CONFIDENCE_TAG

public static final String CONFIDENCE_TAG
Indicates the confidence of a scene element.

See Also:
Constant Field Values

POINTS_TAG

public static final String POINTS_TAG
Indicates the stroke path for a stroke element.

See Also:
Constant Field Values
Constructor Detail

SceneTranslator.OldSceneParser

public SceneTranslator.OldSceneParser()
Method Detail

parse

public Object parse(Reader in)
             throws Exception
Parse the input stream dictated by the given reader intoa scene.

Specified by:
parse in interface ModelParser
Throws:
Exception


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.