public interface ITypeService extends IMetaComponent
IThingType
,
IXTypeService
Modifier and Type | Method and Description |
---|---|
IThingType |
getTypeFromID(int typeID)
gets a IThingType object for that type.
|
IThingType |
getTypeFromName(String name)
get the thing type instance from the name
|
String |
getTypeName(int typeID)
Returns a String name for the specified type identifier
|
default Map<Integer,IThingType> |
getTypes() |
void |
invalidateTypes()
causes service to reinitialize type map
internal use only
|
int |
registerThingType(int typeID,
String name,
String factoryClassName)
Registers a new Thing type.
|
void |
unregisterThingType(int typeID)
Unregisters a Thing type.
|
getMetaContext, setMetaContext
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IThingType getTypeFromID(int typeID)
String getTypeName(int typeID) throws MetaException
typeID
- MetaException
IThingType getTypeFromName(String name) throws MetaException
name
- MetaException
int registerThingType(int typeID, String name, String factoryClassName) throws MetaException
typeID
- type ID of new typename
- name of new typefactoryClassName
- factory classMetaException
- when DB error or if type ID or type name is already usedvoid unregisterThingType(int typeID) throws MetaException
typeID
- type to removeMetaException
- if things of this type exist or DB errorvoid invalidateTypes()
default Map<Integer,IThingType> getTypes()