|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.xml.AbstractXmlBuilder
diva.sketch.recognition.SceneBuilder
public class SceneBuilder
Builder class for scenes and scene elements and simple data. FIXME - more docs
Field Summary | |
---|---|
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 Summary | |
---|---|
SceneBuilder()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class diva.util.xml.AbstractXmlBuilder |
---|
getDelegate, setDelegate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public SceneBuilder()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |