Package ontopoly.model
Class AbstractTypingTopic
java.lang.Object
ontopoly.model.Topic
ontopoly.model.AbstractTypingTopic
- Direct Known Subclasses:
AssociationType,IdentityType,NameType,OccurrenceType,RoleType,TopicType
INTERNAL: Common superclass for all typing topics, like association types,
topic types, role types, etc. FIXME: Should there be another subtype for
isHidden, isReadOnly etc?
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<? extends FieldDefinition>Returns the field definitions that are declared for this typing topic.abstract LocatorIFGets the LocatorIF for this typing topic.booleanisHidden()Returns true if this typing topic is hidden.booleanReturns true if this typing topic is read-only.Methods inherited from class ontopoly.model.Topic
addTopicType, copyCharacteristics, equals, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, hashCode, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString
-
Constructor Details
-
AbstractTypingTopic
Constructor.- Parameters:
topicIF- the TopicIF object associated with this topic.tm- the TopicMap this topic belongs to.
-
-
Method Details
-
getLocatorIF
Gets the LocatorIF for this typing topic. The locator is the PSI used by the ontology topic map model.p- Returns:
- the LocatorIF for this typing topic.
-
isReadOnly
public boolean isReadOnly()Returns true if this typing topic is read-only. If the topic type is read-only it cannot be edited or deleted.- Returns:
- true if read only is turned on.
-
isHidden
public boolean isHidden()Returns true if this typing topic is hidden. NOTE: this feature is not yet supported.- Returns:
- true if hidden is turned on.
-
getDeclaredByFields
Returns the field definitions that are declared for this typing topic.- Returns:
- a list of FieldDefinitions.
-