public class SceneBuilder extends AbstractXmlBuilder
Modifier and Type | Field and Description |
---|---|
static String |
BUILDER_DECLS |
static String |
COMPOSITE_ELEMENT_TAG
Indicates a scene element.
|
static String |
CONFIDENCE_TAG
Indicates the confidence of a scene element.
|
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 |
ROOT_NAME
The name of the root 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 and Description |
---|
SceneBuilder() |
Modifier and Type | Method and Description |
---|---|
Object |
build(XmlElement elt,
String type)
"scene" => return a scene database
"compositeElement" => return a CompositeElement object
"strokeElement" => return a StrokeElement object
|
CompositeElement |
buildCompositeElement(XmlElement elt,
String type)
Given a composite element represented by its parsed XML equivalent,
first build all of its children in the database, then build it
in the database.
|
Scene |
buildScene(XmlElement elt,
String type) |
StrokeElement |
buildStrokeElement(XmlElement elt,
String type)
Build the given elemnt into a stroke elem
|
XmlElement |
generate(Object in)
Unable to generate XML by default.
|
XmlElement |
generateComposite(CompositeElement in,
String name) |
XmlElement |
generateStroke(StrokeElement in) |
getDelegate, setDelegate
public static final String BUILDER_DECLS
public static final String SCENE_TAG
public static final String COMPOSITE_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 ROOT_NAME
public static final String CONFIDENCE_TAG
public static final String POINTS_TAG
public Object build(XmlElement elt, String type) throws Exception
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
Exception
public Scene buildScene(XmlElement elt, String type) throws Exception
Exception
public CompositeElement buildCompositeElement(XmlElement elt, String type) throws Exception
Exception
public StrokeElement buildStrokeElement(XmlElement elt, String type)
public XmlElement generate(Object in) throws Exception
AbstractXmlBuilder
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
Exception
public XmlElement generateComposite(CompositeElement in, String name) throws Exception
Exception
public XmlElement generateStroke(StrokeElement in) throws IOException
IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.