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, setDelegatepublic 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 XmlBuilderbuild in class AbstractXmlBuilderExceptionpublic Scene buildScene(XmlElement elt, String type) throws Exception
Exceptionpublic CompositeElement buildCompositeElement(XmlElement elt, String type) throws Exception
Exceptionpublic StrokeElement buildStrokeElement(XmlElement elt, String type)
public XmlElement generate(Object in) throws Exception
AbstractXmlBuildergenerate in interface XmlBuildergenerate in class AbstractXmlBuilderExceptionpublic XmlElement generateComposite(CompositeElement in, String name) throws Exception
Exceptionpublic XmlElement generateStroke(StrokeElement in) throws IOException
IOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.