public class TopicMapTypeManager
extends java.lang.Object
A class that manages all TopicMapTypes. In particular, has methods to get the TopicMapType of a specific class extending TopicMap or an instance of such a class.
Note that currently the getType methods have hard coded mapping for following topic map implementations: TopicMapImpl, RemoteTopicMap, DatabaseTopicMap and LayerStack. This means that there is no way to register new topic map implementations. In future this class should read or automatically detect all implementations.
Constructor and Description |
---|
TopicMapTypeManager()
Creates a new instance of TopicMapTypeManager
|
Modifier and Type | Method and Description |
---|---|
static TopicMapType |
getType(java.lang.Class<? extends TopicMap> c)
Get the TopicMapType from a topic map implementing class.
|
static TopicMapType |
getType(TopicMap tm)
Get the TopicMapType from a TopicMap.
|
public TopicMapTypeManager()
public static TopicMapType getType(TopicMap tm)
public static TopicMapType getType(java.lang.Class<? extends TopicMap> c)
Copyright 2004-2015 Wandora Team