|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.recognition.Type
A unique identifier for the type of a piece of data that results from a recognition. For example, different drawings of squares have different parameters (size, etc.) but they all have the same type.
TypedData
,
SimpleData
Field Summary | |
static Type |
NO_TYPE
A Type object that has no ID. |
Constructor Summary | |
Type(java.lang.Class c,
java.lang.String id)
Create a Type of the specified class and string ID. |
Method Summary | |
static void |
addNativeType(java.lang.String nativeType)
Record the specified type so that objects of this type can be automatically generated on the fly. |
TypedData |
createTypedData()
Create a TypedData object by instantiating an object based on the Class specified in this Type object. |
boolean |
equals(java.lang.Object o)
Check the equivalence of this object and the specified object. |
java.lang.String |
getID()
Return the string ID. |
Type |
getParent()
Return the parent of this type. |
int |
hashCode()
Return the hashCode of this object. |
static boolean |
isNativeType(java.lang.String type)
Check if the specified type is in the record. |
static Type |
makeType(java.lang.String typeName)
Instantiate a Type object based on the specified type name. |
java.lang.String |
toString()
Text representation of this Type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Type NO_TYPE
Constructor Detail |
public Type(java.lang.Class c, java.lang.String id)
Method Detail |
public static void addNativeType(java.lang.String nativeType)
public static boolean isNativeType(java.lang.String type)
public TypedData createTypedData()
public java.lang.String getID()
public static Type makeType(java.lang.String typeName)
public boolean equals(java.lang.Object o)
public int hashCode()
public Type getParent()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |