|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic interface to a TMAPI system. Any TMAPI system must be capable of providing access to one or more TopicMap objects. A TMAPI system may be capable of allowing a client to create a new TopicMap object.
Every TopicMap managed by a TopicMapSystem must be uniquely identifiable by a locator. This locator must be specified when creating a new TopicMap and is the identifier used to retrieve a TopicMap from the TopicMapSystem.
Nested Class Summary | |
static interface |
TopicMapSystem.ConfigurableHelperObject
An interface for a helper object implementation which requires notification of the TopicMap instance it acts upon. |
Method Summary | |
void |
close()
Applications SHOULD call this method when the TopicMapSystem instance is no longer required. |
TopicMap |
createTopicMap(java.lang.String baseLocatorReference)
Creates a new topic map with a specified base locator. |
TopicMap |
createTopicMap(java.lang.String baseLocatorReference,
java.lang.String baseLocatorNotation)
Creates a new topic map with a specified base locator. |
java.util.Set |
getBaseLocators()
Returns the base locators of the topic maps managed by the system. |
boolean |
getFeature(java.lang.String featureName)
Returns the value of the feature specified by featureName
for this TopicMapSystem instance. |
java.lang.String |
getProperty(java.lang.String propertyName)
Gets a property in the underlying implementation of TopicMapSystem . |
TopicMap |
getTopicMap(Locator baseLocator)
Retrieves the topic map managed by the system with the specified base locator. |
TopicMap |
getTopicMap(java.lang.String baseLocatorReference)
Retrieves the topic map managed by the system with the specified base locator reference. |
TopicMap |
getTopicMap(java.lang.String baseLocatorReference,
java.lang.String baseLocatorNotation)
Retrieves the topic map managed by the system with the specified base locator. |
Method Detail |
public TopicMap createTopicMap(java.lang.String baseLocatorReference, java.lang.String baseLocatorNotation) throws TopicMapExistsException
baseLocatorReference
- The data part of the base locator reference.baseLocatorNotation
- The notation of the base locator reference.
TopicMapExistsException
- if the TopicMapSystem already manages a
TopicMap with the specified base locator.public TopicMap createTopicMap(java.lang.String baseLocatorReference) throws TopicMapExistsException
baseLocatorReference
- The data part of the base locator reference.
The value must be a valid URI.
TopicMapExistsException
- if the TopicMapSystem already manages a
TopicMap with the specified base locator.public TopicMap getTopicMap(java.lang.String baseLocatorReference, java.lang.String baseLocatorNotation)
baseLocatorReference
- The data part of the base locator reference.baseLocatorNotation
- The notation of the base locator reference.
null
if no such
TopicMap is found.public TopicMap getTopicMap(java.lang.String baseLocatorReference)
baseLocatorReference
- The data part of the base locator reference.
The value must be a valid URI.
null
if no such
TopicMap is found.public TopicMap getTopicMap(Locator baseLocator)
baseLocator
- The base locator object.
null
if no such
TopicMap is found.public java.util.Set getBaseLocators()
null
.
public java.lang.String getProperty(java.lang.String propertyName)
TopicMapSystem
.
A list of the core
properties defined by TMAPI can be found at
http://tmapi.org/properties/. An implementation is free to
support properties other than the core ones.
The properties supported by the TopicMapSystem
and the value for each property is set when the TopicMapSystem is created by a call
to TopicMapSystemFactory.newTopicMapSystem()
and cannot be modified
subsequently.
propertyName
- the name of the property to retrieve.
null
if no value is
set for the property.public boolean getFeature(java.lang.String featureName) throws FeatureNotRecognizedException
featureName
for this TopicMapSystem instance. The features supported by the TopicMapSystem
and the value for each feature is set when the TopicMapSystem is created by a call
to TopicMapSystemFactory.newTopicMapSystem()
and cannot be modified
subsequently.
featureName
- the name of the feature to check
FeatureNotRecognizedException
- if the underlying implementation does not
recongnize the named feature.public void close()
An implementation of the TopicMapSystem interface may use this method to clean up any resources used by the implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |