|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.shared.datatypes.MapPrimitiveDataTypes
public abstract class MapPrimitiveDataTypes
Class containing static mapping between Biomoby primitive data types and names of classes they are represented by.
The class is usually not used by itself (because usually we need more than just primitive data types). Typically, a subclass of this class will be auto-generated from the data type definitions (as they are in a Biomoby registry (e.g. see MoSeS - Moby Services Support).
Constructor Summary | |
---|---|
MapPrimitiveDataTypes()
|
Method Summary | |
---|---|
Class |
getClass(String dataTypeName)
Return a class that represents given data type. |
String |
getClassName(String dataTypeName)
Return a class name that represents given data type. |
static String |
getClassNameForPrimitives(String dataTypeName)
Return a class name that represents given data type. |
int |
getMappingSize()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapPrimitiveDataTypes()
Method Detail |
---|
public Class getClass(String dataTypeName) throws MobyException
dataTypeName
- whose class is returned (e.g. String,
NucleotideSequence,...)
MobyException
- if class name was found but class itself
was notpublic String getClassName(String dataTypeName)
Note that because this class cannot be made static (ask me why
not), there is yet another method (getClassNameForPrimitives(java.lang.String)
that deals only woth primitive and
it is static.
dataTypeName
- whose class name is returned (e.g. String,
NucleotideSequence,...)
public static String getClassNameForPrimitives(String dataTypeName)
This cannot be overriden - so it works only for the data types stored directly in this class - which are the BioMoby primitive types.
dataTypeName
- whose class name is returned (e.g. String,
Integer,...); it makes sense only if 'dataTypeName' is a
BioMoby primitive type
public int getMappingSize()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |