public class Topic extends Object
Constructor and Description |
---|
Topic(TopicIF topicIF,
TopicMap tm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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(Object o) |
protected void |
findDependentObjects(Collection<Topic> alreadyKnownDependentObjects)
Find all objects that are dependent on this topic and that should
be removed if this topic is removed.
|
Collection<Topic> |
getDependentObjects() |
List<FieldInstance> |
getFieldInstances(TopicType topicType) |
List<FieldInstance> |
getFieldInstances(TopicType topicType,
FieldsView fieldsView) |
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.
|
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.
|
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.
|
String |
toString() |
public String getId()
public TopicIF getTopicIF()
public TopicMap getTopicMap()
public 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 topicpublic List<TopicType> getTopicTypes()
public void addTopicType(TopicType type)
public void removeTopicType(TopicType type)
public List<FieldInstance> getFieldInstances(TopicType topicType)
public 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 Collection<Topic> getDependentObjects()
protected void findDependentObjects(Collection<Topic> alreadyKnownDependentObjects)
public Topic copyCharacteristics()
public boolean isInstanceOf(Topic type)
public boolean isInstanceOf(LocatorIF psi)