|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule de.uka.ipd.consensus.impl.OntologyManagerImpl
TODO
Field Summary | |
static String |
INTERNAL_TYPE_PREFIX
|
Constructor Summary | |
OntologyManagerImpl()
|
Method Summary | |
void |
abortTransaction(Object scope,
Object ta)
This is a "quick rollback" for the transaction if no changes have been made to the ontology. |
protected void |
addAttribute(User adder,
Topic topic,
Attribute attr)
|
void |
addExportHandler(ExportHandler handler)
Registers an ExportHandler instance with the OntologyManager. |
void |
addImportHandler(ImportHandler handler)
Registers an ImportHandler instance with the OntologyManager. |
protected Association |
addInstanceType(User adder,
Topic topic,
Topic type,
boolean fire)
|
void |
addOntologyListener(OntologyListener listener)
Registers a new OntologyListener. |
protected Association |
addSuperclass(User adder,
Topic topic,
Topic superclass,
boolean fire)
|
Rateable |
checkInternalRateable(Rateable rateable)
Checks the given rateable object if it is a special association that is usually wrapped inside a TypeInstance, SuperSubclass or Synonym. |
void |
commitTransaction(Object scope,
Object ta)
Commits the transaction for the given scope. |
Association |
createAssociation(User creator,
String id,
String name,
Topic type)
Creates an association of the given type. |
Attribute |
createAttribute(User creator,
String id,
String name,
String value,
Topic type)
Creates an attribute of the given type. |
Topic |
createClassTopic(User creator,
String id,
String name,
Topic cls)
Creates a class topic as a subclass of the given superclass topic. |
Topic |
createInternalTopic(User creator,
String id,
String name,
Topic type)
Creates an internal topic that is not visible through the topic collections, only by id query. |
protected void |
createNewCreatedByAssociation(User creator,
org.tm4j.topicmap.Topic creatableTopic)
|
protected org.tm4j.topicmap.Topic |
createNewTopic(String id,
String name,
org.tm4j.topicmap.Topic type)
|
protected void |
createSourceLocator(org.tm4j.topicmap.TopicMapObject tmo)
|
Topic |
createTopic(User creator,
String id,
String name,
Topic type)
Creates a topic of the given type. |
protected void |
createTopicTypes()
|
void |
deleteAssociation(Association assoc)
Deletes an association permanently from the ontology. |
void |
deleteAttribute(Attribute attr)
Deletes an attribute permanently from the ontology. |
void |
deleteTopic(Topic topic)
Deletes a topic permanently from the ontology. |
protected void |
fireAssociationCreated(Association assoc,
User creator)
|
protected void |
fireAssociationTopicAdded(Association assoc,
User adder,
Topic topic)
|
protected void |
fireAssociationTopicRemoved(Association assoc,
User remover,
Topic topic)
|
protected void |
fireAttributeAdded(Attribute attr,
User adder,
Topic topic)
|
protected void |
fireAttributeRemoved(Attribute attr,
User remover,
Topic topic)
|
protected void |
fireAttributeValueChanged(Attribute attr,
User changer,
String oldValue)
|
protected void |
fireConceptCommentChanged(Concept concept,
User changer,
String oldComment)
|
protected void |
fireConceptNameChanged(Concept concept,
User changer,
String oldName)
|
protected void |
fireConceptTypeChanged(Concept concept,
User changer,
Topic oldTopic)
|
protected void |
fireOccurrenceChanged(Occurrence occ,
User changer,
Topic topic,
String oldData)
|
protected void |
fireOccurrenceCreated(Occurrence occ,
User creator,
Topic topic)
|
protected void |
fireOccurrenceRemoved(Occurrence occ,
User remover,
Topic topic)
|
protected void |
fireSynonymAdded(Synonym synonym,
User adder)
|
protected void |
fireSynonymRemoved(Synonym synonym,
User remover)
|
protected void |
fireTopicClassChanged(Topic topic,
User changer,
Topic oldTopic)
|
protected void |
fireTopicCreated(Topic topic,
User creator)
|
protected Attributeable |
getAttributeable(org.tm4j.topicmap.Topic attributeableTopic)
|
protected org.tm4j.topicmap.Topic |
getAttributeTopicType()
|
protected org.tm4j.net.Locator |
getClassInstancePSI()
|
protected org.tm4j.topicmap.Topic |
getClassInstanceTopicType()
|
protected org.tm4j.net.Locator |
getClassPSI()
|
protected org.tm4j.topicmap.Topic |
getClassTopicType()
|
protected org.tm4j.topicmap.Topic |
getCommentTopicType()
|
protected org.tm4j.topicmap.Topic |
getCreatedbyTopicType()
|
protected User |
getCreator(org.tm4j.topicmap.Association assoc)
|
protected User |
getCreator(org.tm4j.topicmap.Topic creatableTopic)
|
ExportHandler |
getExportHandler(String format)
Returns an export handler for a certain file format. |
int |
getExportHandlerCount()
Returns the number of registered export handlers. |
Iterator |
getExportHandlers()
Returns all export handlers. |
protected org.tm4j.topicmap.Association |
getFirstAssociation(org.tm4j.topicmap.Topic tmTopic,
org.tm4j.topicmap.Topic tmAssocType)
|
protected org.tm4j.topicmap.Topic |
getFirstPlayer(org.tm4j.topicmap.Association tmAssoc,
org.tm4j.topicmap.Topic tmRoleType)
|
protected org.tm4j.topicmap.Topic |
getFirstPlayer(org.tm4j.topicmap.Topic tmTopic,
org.tm4j.topicmap.Topic tmAssocType,
org.tm4j.topicmap.Topic tmRoleType)
|
ImportHandler |
getImportHandler(String format)
Returns an import handler for a certain file format. |
int |
getImportHandlerCount()
Returns the number of registered import handlers. |
Iterator |
getImportHandlers()
Returns all import handlers. |
protected org.tm4j.net.Locator |
getInstancePSI()
|
protected org.tm4j.topicmap.Topic |
getInstanceTopicType()
|
protected Collection |
getInternalTopics()
|
protected org.tm4j.topicmap.Topic |
getInternalTopicType()
|
protected Collection |
getMembersOfRole(org.tm4j.topicmap.Association assoc,
org.tm4j.topicmap.Topic roleSpec)
|
ImportHandler |
getMergeHandler(String format)
Returns an import handler for a certain file format that can merge ontologies in this format. |
int |
getMergeHandlerCount()
Returns the number of registered import handlers that can merge ontologies. |
Iterator |
getMergeHandlers()
Returns all import handlers that can merge ontologies. |
protected org.tm4j.topicmap.Topic |
getNameTopicType()
|
protected org.tm4j.topicmap.Topic |
getOrCreateTopicType(String id,
String name,
org.tm4j.topicmap.Topic type,
org.tm4j.net.Locator psi)
|
protected Collection |
getPlayers(org.tm4j.topicmap.Association tmAssoc,
org.tm4j.topicmap.Topic tmRoleType)
|
protected Collection |
getPlayers(org.tm4j.topicmap.Topic tmTopic,
org.tm4j.topicmap.Topic tmAssocType,
org.tm4j.topicmap.Topic tmRoleType)
|
QueryEngine |
getQueryEngine()
Returns the QueryEngine that is part of the OntologyManager. |
protected org.tm4j.net.Locator |
getSubclassPSI()
|
protected org.tm4j.topicmap.Topic |
getSubclassTopicType()
|
protected org.tm4j.topicmap.Association |
getSuperclassAssociation(org.tm4j.topicmap.Topic topic,
org.tm4j.topicmap.Topic superclass)
|
protected org.tm4j.net.Locator |
getSuperclassPSI()
|
protected org.tm4j.net.Locator |
getSuperclassSubclassPSI()
|
protected org.tm4j.topicmap.Topic |
getSuperclasssubclassTopicType()
|
protected org.tm4j.topicmap.Topic |
getSuperclassTopicType()
|
protected org.tm4j.net.Locator |
getSynonymousTermsPSI()
|
protected org.tm4j.topicmap.Topic |
getSynonymoustermsTopicType()
|
protected org.tm4j.net.Locator |
getSynonymPSI()
|
protected org.tm4j.topicmap.Topic |
getSynonymTopicType()
|
org.tm4j.topicmap.TopicMap |
getTopicMap()
|
protected org.tm4j.net.Locator |
getTopicMapBase()
|
protected org.tm4j.topicmap.TopicMapProvider |
getTopicMapProvider()
|
protected String |
getTopicName(org.tm4j.topicmap.Topic topic)
|
protected org.tm4j.topicmap.Association |
getTypeAssociation(org.tm4j.topicmap.Topic topic,
org.tm4j.topicmap.Topic type)
|
protected org.tm4j.topicmap.Topic |
getUserTopicType()
|
protected org.tm4j.topicmap.Topic |
getValueTopicType()
|
String |
getVersion()
Returns a version string of the implementation of this module. |
protected org.tm4j.topicmap.Topic |
getVersionTopicType()
|
protected boolean |
hasTopicName(org.tm4j.topicmap.Topic topic)
|
void |
init(Properties config,
LoggingManager logging,
UserManager users)
This method is called by the ConsensusFoundation constructor to initialize the OntologyManager.
|
void |
initCompleted(Properties config,
ConsensusFoundationManager cfm)
This method is called by the ConsensusFoundation constructor after all available modules have
been initialized (i.e. their init() method has been called). |
protected boolean |
isInternalTopicType(org.tm4j.topicmap.Topic tmTopic)
|
Object |
openTransaction(Object scope)
Opens a transaction for the ontology backend. |
protected void |
removeAttribute(User remover,
Topic topic,
Attribute attr)
|
void |
removeOntologyListener(OntologyListener listener)
Removes an OntologyListener, if it is registered with the OntologyManager (otherwise this call is ignored). |
boolean |
reorg()
If the ontology needs reorganization from time to time, the implementation can clean up the ontology when an application calls this method. |
void |
rollbackTransaction(Object scope,
Object ta)
Rolls the transaction back for the given scope. |
protected void |
setTopicMap(org.tm4j.topicmap.TopicMap tm)
|
protected void |
setTopicName(org.tm4j.topicmap.Topic topic,
String name)
|
void |
shutdown()
Called by ConsensusFoundation.shutdown() when the application shuts down.
|
protected boolean |
useClasses()
|
Methods inherited from class de.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule |
finalize, getConsensusFoundationManager, getDynamicRightsManager, getEvolutionManager, getIncentiveManager, getLoggingManager, getOntologyManager, getRatingManager, getUserManager |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.uka.ipd.consensus.foundation.ConsensusFoundationModule |
getConsensusFoundationManager |
Field Detail |
public static final String INTERNAL_TYPE_PREFIX
Constructor Detail |
public OntologyManagerImpl()
Method Detail |
public void init(Properties config, LoggingManager logging, UserManager users) throws Exception
OntologyManager
This method is called by the ConsensusFoundation
constructor to initialize the OntologyManager.
An implementation can use this method to restore an existing ontology from a persistent backend or to load a new ontology from a file (and replace an existing ontology). Import and export handlers should be initialized here, too.
init
in interface OntologyManager
config
- all entries from ConsensusFoundation.properties
logging
- the successfully initialized LoggingManager instanceusers
- the the successfully initialized UserManager instance
Exception
- if any error occurs (startup of the application is aborted in this case)ConsensusFoundation.ConsensusFoundation()
public void initCompleted(Properties config, ConsensusFoundationManager cfm) throws Exception
ConsensusFoundationModule
ConsensusFoundation
constructor after all available modules have
been initialized (i.e. their init()
method has been called). Here a module can perform some final
initialization that is dependant on other modules.
initCompleted
in interface ConsensusFoundationModule
initCompleted
in class AbstractConsensusFoundationModule
Exception
public void shutdown()
ConsensusFoundationModule
ConsensusFoundation.shutdown()
when the application shuts down.
When implementing this method make sure that the shutdown code is executed only once even if this method is called multiple times.
shutdown
in interface ConsensusFoundationModule
shutdown
in class AbstractConsensusFoundationModule
protected Collection getInternalTopics()
protected void createTopicTypes() throws OntologyManagerException
OntologyManagerException
protected boolean isInternalTopicType(org.tm4j.topicmap.Topic tmTopic)
protected org.tm4j.topicmap.Topic getOrCreateTopicType(String id, String name, org.tm4j.topicmap.Topic type, org.tm4j.net.Locator psi) throws Exception
Exception
protected void createSourceLocator(org.tm4j.topicmap.TopicMapObject tmo) throws org.tm4j.topicmap.DuplicateResourceLocatorException, org.tm4j.net.LocatorResolutionException
org.tm4j.topicmap.DuplicateResourceLocatorException
org.tm4j.net.LocatorResolutionException
protected org.tm4j.topicmap.Topic createNewTopic(String id, String name, org.tm4j.topicmap.Topic type) throws org.tm4j.topicmap.DuplicateObjectIDException, PropertyVetoException, org.tm4j.topicmap.DuplicateResourceLocatorException, org.tm4j.net.LocatorResolutionException
org.tm4j.topicmap.DuplicateObjectIDException
PropertyVetoException
org.tm4j.topicmap.DuplicateResourceLocatorException
org.tm4j.net.LocatorResolutionException
protected void setTopicName(org.tm4j.topicmap.Topic topic, String name) throws PropertyVetoException, org.tm4j.topicmap.DuplicateObjectIDException
PropertyVetoException
org.tm4j.topicmap.DuplicateObjectIDException
protected boolean hasTopicName(org.tm4j.topicmap.Topic topic)
protected String getTopicName(org.tm4j.topicmap.Topic topic)
protected void createNewCreatedByAssociation(User creator, org.tm4j.topicmap.Topic creatableTopic) throws org.tm4j.topicmap.DuplicateObjectIDException, org.tm4j.topicmap.DuplicateResourceLocatorException, PropertyVetoException, org.tm4j.net.LocatorResolutionException
org.tm4j.topicmap.DuplicateObjectIDException
org.tm4j.topicmap.DuplicateResourceLocatorException
PropertyVetoException
org.tm4j.net.LocatorResolutionException
protected org.tm4j.topicmap.Association getFirstAssociation(org.tm4j.topicmap.Topic tmTopic, org.tm4j.topicmap.Topic tmAssocType)
protected Collection getPlayers(org.tm4j.topicmap.Topic tmTopic, org.tm4j.topicmap.Topic tmAssocType, org.tm4j.topicmap.Topic tmRoleType)
protected Collection getPlayers(org.tm4j.topicmap.Association tmAssoc, org.tm4j.topicmap.Topic tmRoleType)
protected org.tm4j.topicmap.Topic getFirstPlayer(org.tm4j.topicmap.Association tmAssoc, org.tm4j.topicmap.Topic tmRoleType)
protected org.tm4j.topicmap.Topic getFirstPlayer(org.tm4j.topicmap.Topic tmTopic, org.tm4j.topicmap.Topic tmAssocType, org.tm4j.topicmap.Topic tmRoleType)
protected User getCreator(org.tm4j.topicmap.Topic creatableTopic)
protected User getCreator(org.tm4j.topicmap.Association assoc)
protected Attributeable getAttributeable(org.tm4j.topicmap.Topic attributeableTopic)
protected Collection getMembersOfRole(org.tm4j.topicmap.Association assoc, org.tm4j.topicmap.Topic roleSpec)
protected org.tm4j.topicmap.Association getSuperclassAssociation(org.tm4j.topicmap.Topic topic, org.tm4j.topicmap.Topic superclass)
protected org.tm4j.topicmap.Association getTypeAssociation(org.tm4j.topicmap.Topic topic, org.tm4j.topicmap.Topic type)
protected Association addSuperclass(User adder, Topic topic, Topic superclass, boolean fire) throws OntologyManagerException
OntologyManagerException
protected Association addInstanceType(User adder, Topic topic, Topic type, boolean fire) throws OntologyManagerException
OntologyManagerException
public Topic createTopic(User creator, String id, String name, Topic type) throws OntologyManagerException, DynamicRightsManagerException
OntologyManager
createTopic
in interface OntologyManager
creator
- the user who wants to create the topicid
- the id (must not be empty) or (usually) null
for an automatically computed idname
- the topic's name (must not be empty or null
)type
- the type topic for the topic or null
for a typeless topic
DynamicRightsManagerException
- if the user is not allowed to create topics of the given type
OntologyManagerException
- if the topic could not be createdTopic.isClassTopic()
,
DynamicRightsManager.mayCreateTopic(User, Topic)
public Topic createClassTopic(User creator, String id, String name, Topic cls) throws OntologyManagerException, DynamicRightsManagerException
OntologyManager
Topic.setClassTopic(true) is called after creation automatically.
createClassTopic
in interface OntologyManager
creator
- the user who wants to create the class topicid
- the id (must not be empty) or (usually) null
for an automatically computed idname
- the topic's name (must not be empty or null
)cls
- the superclass topic for the new class topic or null
for a root class topic
OntologyManagerException
- if the class topic could not be created
DynamicRightsManagerException
- if the user is not allowed to create class topics of the given typeTopic.isClassTopic()
,
Topic.setClassTopic(boolean)
,
DynamicRightsManager.mayCreateClassTopic(User, Topic)
public Topic createInternalTopic(User creator, String id, String name, Topic type) throws OntologyManagerException
OntologyManager
If an id is given and an internal topic already exists with that id, the existing topic is returned instead of a newly created one.
Topic.setClassTopic(true) is called after creation automatically if the implementation uses classes.
createInternalTopic
in interface OntologyManager
creator
- the user who wants to create the internal topicid
- the id (must not be empty), null
for an automatically computed idname
- the topic's name (must not be empty or null
)type
- the type topic for the new topic or null
for a typeless topic
OntologyManagerException
- if the topic could not be createdTopic.isClassTopic()
,
Topic.setClassTopic(boolean)
public Attribute createAttribute(User creator, String id, String name, String value, Topic type) throws OntologyManagerException, DynamicRightsManagerException
OntologyManager
createAttribute
in interface OntologyManager
creator
- the user who wants to create the attributeid
- the id (must not be empty) or (usually) null
for an automatically computed idname
- the attribute's name (must not be empty or null
)value
- the attribute's value (null
is treated as the empty string)type
- the type topic for the attribute or null
for a typeless attribute
OntologyManagerException
- if the attribute could not be created
DynamicRightsManagerException
- if the user is not allowed to create attributes of the given typeAttributeable.addAttribute(User, Attribute)
,
Topic.isClassTopic()
,
DynamicRightsManager.mayCreateAttribute(User, Topic)
protected void addAttribute(User adder, Topic topic, Attribute attr) throws OntologyManagerException
OntologyManagerException
protected void removeAttribute(User remover, Topic topic, Attribute attr) throws OntologyManagerException
OntologyManagerException
public Association createAssociation(User creator, String id, String name, Topic type) throws OntologyManagerException, DynamicRightsManagerException
OntologyManager
createAssociation
in interface OntologyManager
creator
- the user who wants to create the associationid
- the id (must not be empty) or (usually) null
for an automatically computed idname
- the association's name (null
is treated as the empty string)type
- the type topic for the association or null
for a typeless association
DynamicRightsManagerException
- if the user is not allowed to create associations of the given type
OntologyManagerException
- if the association could not be createdTopic.isClassTopic()
,
DynamicRightsManager.mayCreateAssociation(User, Topic)
public Rateable checkInternalRateable(Rateable rateable)
OntologyManager
checkInternalRateable
in interface OntologyManager
rateable
- the rateable object to be checked if it is a special internal association
TypeInstance
,
SuperSubclass
,
Synonym
public void deleteTopic(Topic topic) throws OntologyManagerException
OntologyManager
To delete topics in an application, use the EvolutionManager that keeps the ontology consistent and checks the user's rights. The EvolutionManager will then use this method to do the actual deleting.
deleteTopic
in interface OntologyManager
topic
- the topic to be deleted
OntologyManagerException
- if the topic cannot be deleted without making the ontology inconsistentEvolutionManager
public void deleteAssociation(Association assoc) throws OntologyManagerException
OntologyManager
To delete associations in an application, use the EvolutionManager that keeps the ontology consistent and checks the user's rights. The EvolutionManager will then use this method to do the actual deleting.
deleteAssociation
in interface OntologyManager
assoc
- the association to be deleted
OntologyManagerException
- if the association cannot be deleted without making the ontology inconsistentEvolutionManager
public void deleteAttribute(Attribute attr) throws OntologyManagerException
OntologyManager
To delete attributes in an application, use the EvolutionManager that keeps the ontology consistent and checks the user's rights. The EvolutionManager will then use this method to do the actual deleting.
deleteAttribute
in interface OntologyManager
attr
- the attribute to be deleted
OntologyManagerException
- if the attribute cannot be deleted without making the ontology inconsistentEvolutionManager
public QueryEngine getQueryEngine()
OntologyManager
Note that the engine might be available only after initCompleted()
has finished.
getQueryEngine
in interface OntologyManager
public void addOntologyListener(OntologyListener listener)
OntologyManager
addOntologyListener
in interface OntologyManager
listener
- the OntologyListener to be addedpublic void removeOntologyListener(OntologyListener listener)
OntologyManager
removeOntologyListener
in interface OntologyManager
listener
- the OntologyListener to be removedprotected void fireTopicCreated(Topic topic, User creator)
protected void fireAssociationCreated(Association assoc, User creator)
protected void fireConceptCommentChanged(Concept concept, User changer, String oldComment)
protected void fireConceptNameChanged(Concept concept, User changer, String oldName)
protected void fireConceptTypeChanged(Concept concept, User changer, Topic oldTopic)
protected void fireTopicClassChanged(Topic topic, User changer, Topic oldTopic)
protected void fireAssociationTopicAdded(Association assoc, User adder, Topic topic)
protected void fireAssociationTopicRemoved(Association assoc, User remover, Topic topic)
protected void fireOccurrenceCreated(Occurrence occ, User creator, Topic topic)
protected void fireOccurrenceChanged(Occurrence occ, User changer, Topic topic, String oldData)
protected void fireOccurrenceRemoved(Occurrence occ, User remover, Topic topic)
protected void fireAttributeAdded(Attribute attr, User adder, Topic topic)
protected void fireAttributeValueChanged(Attribute attr, User changer, String oldValue)
protected void fireAttributeRemoved(Attribute attr, User remover, Topic topic)
protected void fireSynonymAdded(Synonym synonym, User adder)
protected void fireSynonymRemoved(Synonym synonym, User remover)
public Object openTransaction(Object scope) throws OntologyManagerException
OntologyManager
The return value is a transaction object if this call started a new transaction or null
if another transaction is already running for this scope.
You'll have to pass the exact return value to the commit/rollback method.
Note that the implementation is not required to use the scope information if the backend does not support scoped transactions.
If the backend does not support transactions at all, you'll always get null
as the return value, which you can safely pass
to the other transaction methods.
openTransaction
in interface OntologyManager
scope
- the scope how long the transaction will probably last
null
OntologyManagerException
- if the transaction could not be openedpublic void abortTransaction(Object scope, Object ta)
OntologyManager
abortTransaction
in interface OntologyManager
scope
- the scope for this transactionta
- the return value from openTransaction()
OntologyManager.openTransaction(Object)
public void commitTransaction(Object scope, Object ta) throws OntologyManagerException
OntologyManager
openTransaction()
to this method.
commitTransaction
in interface OntologyManager
scope
- the scope for this transactionta
- the return value from openTransaction()
OntologyManagerException
- if the transaction could not be committed successfullyOntologyManager.openTransaction(Object)
public void rollbackTransaction(Object scope, Object ta) throws OntologyManagerException
OntologyManager
openTransaction()
to this method.
rollbackTransaction
in interface OntologyManager
scope
- the scope for this transactionta
- the return value from openTransaction()
OntologyManagerException
- if the transaction could not be rolled back successfullyOntologyManager.openTransaction(Object)
public org.tm4j.topicmap.TopicMap getTopicMap()
protected void setTopicMap(org.tm4j.topicmap.TopicMap tm)
protected org.tm4j.topicmap.TopicMapProvider getTopicMapProvider()
protected org.tm4j.net.Locator getTopicMapBase()
protected org.tm4j.net.Locator getSuperclassSubclassPSI()
protected org.tm4j.net.Locator getSuperclassPSI()
protected org.tm4j.net.Locator getSubclassPSI()
protected org.tm4j.net.Locator getClassInstancePSI()
protected org.tm4j.net.Locator getClassPSI()
protected org.tm4j.net.Locator getInstancePSI()
protected org.tm4j.net.Locator getSynonymousTermsPSI()
protected org.tm4j.net.Locator getSynonymPSI()
protected org.tm4j.topicmap.Topic getInternalTopicType()
protected org.tm4j.topicmap.Topic getUserTopicType()
protected org.tm4j.topicmap.Topic getCommentTopicType()
protected org.tm4j.topicmap.Topic getCreatedbyTopicType()
protected org.tm4j.topicmap.Topic getNameTopicType()
protected org.tm4j.topicmap.Topic getAttributeTopicType()
protected org.tm4j.topicmap.Topic getValueTopicType()
protected org.tm4j.topicmap.Topic getVersionTopicType()
protected org.tm4j.topicmap.Topic getSynonymoustermsTopicType()
protected org.tm4j.topicmap.Topic getSynonymTopicType()
protected org.tm4j.topicmap.Topic getSuperclasssubclassTopicType()
protected org.tm4j.topicmap.Topic getSuperclassTopicType()
protected org.tm4j.topicmap.Topic getSubclassTopicType()
protected org.tm4j.topicmap.Topic getClassInstanceTopicType()
protected org.tm4j.topicmap.Topic getClassTopicType()
protected org.tm4j.topicmap.Topic getInstanceTopicType()
protected boolean useClasses()
public void addExportHandler(ExportHandler handler)
OntologyManager
ConsensusFoundation.properties
.
For each file format, only one export handler can be registered. Registering a format again replaces the older handler.
addExportHandler
in interface OntologyManager
handler
- the ExportHandler to be added to the OntologyManager's list of export handlersExportHandler
public ExportHandler getExportHandler(String format)
OntologyManager
getExportHandler
in interface OntologyManager
format
- the required file format (e.g. "xtm")
null
if no export handler exists for the required formatOntologyManager.addExportHandler(ExportHandler)
public Iterator getExportHandlers()
OntologyManager
getExportHandlers
in interface OntologyManager
OntologyManager.addExportHandler(ExportHandler)
public int getExportHandlerCount()
OntologyManager
getExportHandlerCount
in interface OntologyManager
OntologyManager.addExportHandler(ExportHandler)
public void addImportHandler(ImportHandler handler)
OntologyManager
ConsensusFoundation.properties
.
For each file format, only one import handler can be registered. Registering a format again replaces the older handler.
addImportHandler
in interface OntologyManager
handler
- the ImportHandler to be added to the OntologyManager's list of import and merge handlersImportHandler
public ImportHandler getImportHandler(String format)
OntologyManager
getImportHandler
in interface OntologyManager
format
- the required file format (e.g. "xtm")
null
if no import handler exists for the required formatOntologyManager.addImportHandler(ImportHandler)
public ImportHandler getMergeHandler(String format)
OntologyManager
getMergeHandler
in interface OntologyManager
format
- the required file format (e.g. "xtm")
null
if no import handler exists that can merge ontologies in the required formatOntologyManager.addImportHandler(ImportHandler)
public Iterator getImportHandlers()
OntologyManager
getImportHandlers
in interface OntologyManager
OntologyManager.addImportHandler(ImportHandler)
public Iterator getMergeHandlers()
OntologyManager
getMergeHandlers
in interface OntologyManager
OntologyManager.addImportHandler(ImportHandler)
public int getImportHandlerCount()
OntologyManager
getImportHandlerCount
in interface OntologyManager
OntologyManager.addImportHandler(ImportHandler)
public int getMergeHandlerCount()
OntologyManager
getMergeHandlerCount
in interface OntologyManager
OntologyManager.addImportHandler(ImportHandler)
public boolean reorg() throws OntologyManagerException
OntologyManager
reorg
in interface OntologyManager
true
if the reorganization was started due to this call or false
if an older reorganization is still running
OntologyManagerException
- if the reorganization could not be finished successfullypublic String getVersion()
ConsensusFoundationModule
getVersion
in interface ConsensusFoundationModule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |