|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ontopoly.model.Topic
public class Topic
INTERNAL: Common superclass for all topics, like instances, association types, topic types, role types, etc. FIXME: Should there be another subtype for isHidden, isReadOnly etc?
Constructor Summary | |
---|---|
Topic(TopicIF topicIF,
TopicMap tm)
Constructor. |
Method Summary | |
---|---|
void |
addTopicType(TopicType type)
Adds the topic type to the list of topic types that topic is a direct instance of. |
Topic |
copyCharacteristics()
|
boolean |
equals(java.lang.Object o)
|
protected void |
findDependentObjects(java.util.Collection<Topic> alreadyKnownDependentObjects)
Find all objects that are dependent on this topic and that should be removed if this topic is removed. |
java.util.Collection<Topic> |
getDependentObjects()
|
java.util.List<FieldInstance> |
getFieldInstances(TopicType topicType)
|
java.util.List<FieldInstance> |
getFieldInstances(TopicType topicType,
FieldsView fieldsView)
|
java.lang.String |
getId()
Gets the id of this topic. |
TopicType |
getMostSpecificTopicType(TopicType topicType)
Given the topic type, find the subtype that is the specific type of this topic. |
java.lang.String |
getName()
Gets the unscoped name of the topic. |
TopicIF |
getTopicIF()
Gets the topicIF object of this topic. |
TopicMap |
getTopicMap()
Gets the topicMap this topic belongs to. |
java.util.List<TopicType> |
getTopicTypes()
Returns the topic types of which this topic is a direct instance. |
int |
hashCode()
|
boolean |
isAssociationType()
Tests whether this topic is an association type. |
boolean |
isFieldDefinition()
Tests whether this topic is a field definition or an association field. |
boolean |
isInstanceOf(LocatorIF psi)
|
boolean |
isInstanceOf(Topic type)
|
boolean |
isNameType()
Tests whether this topic is a name type. |
boolean |
isOccurrenceType()
Tests whether this topic is an occurrence type. |
boolean |
isOntologyTopic()
Tests whether this topic is an instance of an ontology type, i.e. |
boolean |
isOntologyType()
Tests whether this topic is an ontology type, i.e. |
boolean |
isPrivateSystemTopic()
|
boolean |
isPublicSystemTopic()
|
boolean |
isRoleType()
Tests whether this topic is a role type. |
boolean |
isSystemTopic()
Tests whether this topic is a system topic type. |
boolean |
isTopicMap()
Tests whether this topic is a topic map. |
boolean |
isTopicType()
Tests whether this topic is a topic type. |
void |
remove(LifeCycleListener listener)
Removes the topic from the topic map. |
void |
removeTopicType(TopicType type)
Removes the topic type from the list of topic types that topic is a direct instance of. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Topic(TopicIF topicIF, TopicMap tm)
topicIF
- the TopicIF object associated with this topic.tm
- the TopicMap this topic belongs to.Method Detail |
---|
public java.lang.String getId()
public TopicIF getTopicIF()
public TopicMap getTopicMap()
public java.lang.String getName()
public boolean isTopicMap()
public boolean isTopicType()
public boolean isNameType()
public boolean isOccurrenceType()
public boolean isAssociationType()
public boolean isRoleType()
public boolean isFieldDefinition()
public boolean isSystemTopic()
public boolean isPrivateSystemTopic()
public boolean isPublicSystemTopic()
public boolean isOntologyTopic()
public boolean isOntologyType()
public TopicType getMostSpecificTopicType(TopicType topicType)
topicType
- the super type of this topic
public java.util.List<TopicType> getTopicTypes()
public void addTopicType(TopicType type)
public void removeTopicType(TopicType type)
public java.util.List<FieldInstance> getFieldInstances(TopicType topicType)
public java.util.List<FieldInstance> getFieldInstances(TopicType topicType, FieldsView fieldsView)
public void remove(LifeCycleListener listener)
listener
- listener that gets call back from the deleting this topic, and any dependencies.ppublic java.util.Collection<Topic> getDependentObjects()
protected void findDependentObjects(java.util.Collection<Topic> alreadyKnownDependentObjects)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Topic copyCharacteristics()
public boolean isInstanceOf(Topic type)
public boolean isInstanceOf(LocatorIF psi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |