public interface TypedData extends XmlBuilder
Most custom recognizers that understand the semantics of the things that they are recognizing will return some custom implementation of the TypedData interface. For example, a handwriting recognizer might retun a TextData object in its recognition results, which contains the actual text that was recognized and whose getType() method returns a type object that uniquely identifies text.
In contrast, there are some generic recognizers that actually know nothing about the semantics of the things they are recognizing. For example, BasicStrokeRecognizer only knows about feature vectors that it extracts from strokes, and is able to map these to string types, such as "square," "circle," or "triangle." For convenience, there is also an implementation of TypedData called SimpleData that actually provides an implementation for such cases when there is no extra semantic information available, and also when the type system has to be dynamic (e.g. if the types are specified in a text file and there is no associated class to go along with them).
Additionally, TypedData extends XmlBuilder, so that recognition results can be saved to and from XML files.
Type
,
SimpleData
,
Recognition
,
SceneElement
Modifier and Type | Method and Description |
---|---|
Type |
getType()
Return the uniquely identifying type associated
with this piece of data.
|
build, generate, setDelegate
Type getType()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.