Package ontopoly.model
Class TopicType
java.lang.Object
ontopoly.model.Topic
ontopoly.model.AbstractTypingTopic
ontopoly.model.TopicType
INTERNAL: Represents a topic type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddField(FieldDefinition fieldDefinition) createInstance(String name) Create a new topic instance of this topic type.protected static FieldDefinitionfindFieldDefinitionImpl(TopicMap tm, TopicIF fieldDefinitionTopic, TopicIF fieldDefinitionType) Gets the all subtypes (direct and indirect) of this type.Collection<? extends FieldDefinition>Returns the field definitions that are declared for this typing topic.Gets the direct subtypes of this type.Returns the FieldAssignments for this topic type.getFieldViews(FieldsView fieldsView) Returns the set of all instances of this topic type.Gets the LocatorIF for this typing topic.Returns the supertype of this type, or null if there is none.booleanTests whether this topic type has a hierarchy-forming association type attached to it.booleanTests whether this topic type is abstract.booleanTests whether this topic type has a large instance set.voidremoveField(FieldDefinition fieldDefinition) Returns the topics that matches the given search term.Methods inherited from class ontopoly.model.AbstractTypingTopic
isHidden, isReadOnlyMethods 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
-
TopicType
-
-
Method Details
-
isAbstract
public boolean isAbstract()Tests whether this topic type is abstract.- Returns:
- true if this topic type is abstract.
-
isLargeInstanceSet
public boolean isLargeInstanceSet()Tests whether this topic type has a large instance set. -
hasHierarchy
public boolean hasHierarchy()Tests whether this topic type has a hierarchy-forming association type attached to it. -
getDirectSubTypes
Gets the direct subtypes of this type.- Returns:
- A Collection of TopicType objects.
-
getAllSubTypes
Gets the all subtypes (direct and indirect) of this type.- Returns:
- A Collection of TopicType objects.
-
getSuperType
Returns the supertype of this type, or null if there is none. -
addField
-
removeField
-
createNameType
-
createQueryField
-
createOccurrenceType
-
createAssociationType
-
getFieldAssignments
Returns the FieldAssignments for this topic type. These are sorted by the field order field on the field types. In addition, fields are inherited from all ancestor types.Note that if isSystemTopic(), the list of fields will always contain the default name type with the "exactly one" cardinality at the very top
-
getFieldAssignments
-
findFieldDefinitionImpl
protected static FieldDefinition findFieldDefinitionImpl(TopicMap tm, TopicIF fieldDefinitionTopic, TopicIF fieldDefinitionType) -
getInstances
Returns the set of all instances of this topic type.- Returns:
- A collection of Topic objects.
-
createInstance
Create a new topic instance of this topic type. -
getLocatorIF
Description copied from class:AbstractTypingTopicGets the LocatorIF for this typing topic. The locator is the PSI used by the ontology topic map model.p- Specified by:
getLocatorIFin classAbstractTypingTopic- Returns:
- the LocatorIF for this typing topic.
-
searchAll
Returns the topics that matches the given search term. Only topics of allowed player types are returned.- Returns:
- a collection of Topic objects
-
getDeclaredByFields
Description copied from class:AbstractTypingTopicReturns the field definitions that are declared for this typing topic.- Specified by:
getDeclaredByFieldsin classAbstractTypingTopic- Returns:
- a list of FieldDefinitions.
-
getFieldViews
-