Package ontopoly.model
Class AssociationField
java.lang.Object
ontopoly.model.Topic
ontopoly.model.AssociationField
Represents an association field.
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationField(TopicIF topic, TopicMap tm) AssociationField(TopicIF topic, TopicMap tm, AssociationType associationType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetArity()Returns the arity of the association field, i.e. the number of roles that can be played.Gets the association type that is assigned to this association field.Gets the role fields that are assigned to this association field.Returns the fields for the roles in this association type.voidremove(LifeCycleListener listener) Removes the topic from the topic map.Methods 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, removeTopicType, toString
-
Constructor Details
-
AssociationField
-
AssociationField
-
-
Method Details
-
equals
-
getAssociationType
Gets the association type that is assigned to this association field.- Returns:
- the association type.
-
getArity
public int getArity()Returns the arity of the association field, i.e. the number of roles that can be played.- Returns:
- integer representing the number of allowed roles.
-
getFieldsForRoles
Returns the fields for the roles in this association type.- Returns:
- List of RoleField objects
-
remove
Description copied from class:TopicRemoves the topic from the topic map. -
getDeclaredByFields
Gets the role fields that are assigned to this association field.- Returns:
- Collection of RoleField
-