Package ontopoly.model
Class AssociationType
java.lang.Object
ontopoly.model.Topic
ontopoly.model.AbstractTypingTopic
ontopoly.model.AssociationType
Represents an association type.
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationType(TopicIF currTopic, TopicMap tm) Creates a new AssociationType object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the field definitions that are declared for this typing topic.Returns all role types that have been declared for this association type.Gets the LocatorIF for this typing topic.Returns a collection of lists that contain the role type combinations that have been used in actual associations.booleanTests whether this association type is hierarchical.booleanIndicates whether the association type is symmetric.voidtransformInstances(List<RoleType> roleTypesFrom, List<RoleType> roleTypesTo) Transforms associations from the role types of the given form to the new one as given.Methods inherited from class ontopoly.model.AbstractTypingTopic
isHidden, isReadOnlyMethods inherited from class ontopoly.model.Topic
addTopicType, copyCharacteristics, 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
-
AssociationType
Creates a new AssociationType object.
-
-
Method Details
-
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.
-
equals
-
isSymmetric
public boolean isSymmetric()Indicates whether the association type is symmetric. -
isHierarchical
public boolean isHierarchical()Tests whether this association type is hierarchical.- Returns:
- true if this is association type is hierarchical.
-
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.
-
getDeclaredRoleTypes
Returns all role types that have been declared for this association type.- Returns:
- list of role types
-
getUsedRoleTypeCombinations
Returns a collection of lists that contain the role type combinations that have been used in actual associations. The RoleTypes are sorted by object id.- Returns:
- Collection<List
>
-
transformInstances
Transforms associations from the role types of the given form to the new one as given.- Parameters:
roleTypesFrom- list of role types that should match existing associationsroleTypesTo- list of role types to which the associations should be changed
-