|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.xml.AbstractXmlBuilder
diva.sketch.toolbox.TextData
public class TextData
A typed data that holds a recognized text string. An object of this type might is generated by the Calligrapher recognizer, and can be used as a common type for text recognized by any handwriting recognition software.
Field Summary | |
---|---|
static Type |
type
The static type associated with this typed data. |
Constructor Summary | |
---|---|
TextData()
Construct a text data that contains an empty string. |
|
TextData(String text)
Construct a text data that contains the given string. |
Method Summary | |
---|---|
Object |
build(XmlElement in,
String type)
Given an XmlElement, create and return an internal representtion of it. |
boolean |
equals(Object o)
Equality test: are the strings identical? |
XmlElement |
generate(Object in)
Unable to generate XML by default. |
String |
getText()
Return the text string contained by this data. |
Type |
getType()
Return the type of this data, implementing the TypedData interface. |
void |
setText(String text)
Set the text string contained by this data. |
String |
toString()
Return a string representation of this data for debugging. |
Methods inherited from class diva.util.xml.AbstractXmlBuilder |
---|
getDelegate, setDelegate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface diva.util.xml.XmlBuilder |
---|
setDelegate |
Field Detail |
---|
public static final Type type
Constructor Detail |
---|
public TextData()
public TextData(String text)
Method Detail |
---|
public Type getType()
getType
in interface TypedData
public String getText()
public void setText(String text)
public boolean equals(Object o)
equals
in class Object
public Object build(XmlElement in, String type)
AbstractXmlBuilder
public Graph build (XmlELement elt, String type);
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
public XmlElement generate(Object in)
AbstractXmlBuilder
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |