|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.foundation.ontology.OntologyAdapter
An adapter class for receiving ontology events. The methods in this class are empty. This class exists for convenience for creating listener objects if you don't want to implement all of the listener's methods.
Constructor Summary | |
OntologyAdapter()
|
Method Summary | |
void |
associationCreated(OntologyEvent event)
Called by the OntologyManager when an association is created. |
void |
associationTopicAdded(OntologyEvent event)
Called by the OntologyManager when topic is added as a player to an association. |
void |
associationTopicRemoved(OntologyEvent event)
Called by the OntologyManager when player topic is removed from an association. |
void |
attributeAdded(OntologyEvent event)
Called by the OntologyManager when an attribute is added to a topic. |
void |
attributeRemoved(OntologyEvent event)
Called by the OntologyManager when an attribute is removed from a topic. |
void |
attributeValueChanged(OntologyEvent event)
Called by the OntologyManager when an attribute's value is changed. |
void |
conceptCommentChanged(OntologyEvent event)
Called by the OntologyManager when the comment of a concept has changed. |
void |
conceptNameChanged(OntologyEvent event)
Called by the OntologyManager when the name of a concept has changed. |
void |
conceptTypeChanged(OntologyEvent event)
Called by the OntologyManager when a type is added to or removed from a concept. |
void |
occurrenceChanged(OntologyEvent event)
Called by the OntologyManager when an occurrence's value is changed. |
void |
occurrenceCreated(OntologyEvent event)
Called by the OntologyManager when an occurrence is created. |
void |
occurrenceRemoved(OntologyEvent event)
Called by the OntologyManager when an occurrence is removed from a topic. |
void |
synonymAdded(OntologyEvent event)
Called by the OntologyManager when a synonym is added to a base topic. |
void |
synonymRemoved(OntologyEvent event)
Called by the OntologyManager when a synonym is removed from a base topic. |
void |
topicClassChanged(OntologyEvent event)
Called by the OntologyManager when a superclass is added to or removed from a topic. |
void |
topicCreated(OntologyEvent event)
Called by the OntologyManager when a topic is created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OntologyAdapter()
Method Detail |
public void topicCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the newly created topic.
topicCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user and the newly created topicpublic void associationCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the newly created association.
associationCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user and the newly created associationpublic void occurrenceCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the newly created occurrence.
occurrenceCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the newly created occurrencepublic void conceptCommentChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the comment's old value.
conceptCommentChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the comment's old valuepublic void conceptNameChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the concept's old name.
conceptNameChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old namepublic void conceptTypeChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldType()
the concept's old type. For topics, the old type is null
if a new type is added.
conceptTypeChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old typepublic void topicClassChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic.
OntologyEvent.getOldType()
returns the topic's old superclass if it was removed, or null
if a superclass was added.
topicClassChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old superclasspublic void associationTopicAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the added topic.
associationTopicAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the added topicpublic void associationTopicRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the removed topic.
associationTopicRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the removed topicpublic void occurrenceChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the occurrence and
OntologyEvent.getOldValue()
the occurrence's old value.
occurrenceChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic, the occurrence and its old valuepublic void occurrenceRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the removed occurrence.
occurrenceRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed occurrencepublic void attributeAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the added attribute,
OntologyEvent.getTopic()
the base topic.
attributeAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the added attributepublic void attributeValueChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the attribute,
OntologyEvent.getOldValue()
the attribute's old value.
attributeValueChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the attribute and its old valuepublic void attributeRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the removed attribute,
OntologyEvent.getTopic()
the base topic.
attributeRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed attributepublic void synonymAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the Synonym object that contains both synonymous topics.
synonymAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonympublic void synonymRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the removed Synonym object that contains both synonymous topics.
synonymRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonym
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |