Class AssociationField

java.lang.Object
ontopoly.model.Topic
ontopoly.model.AssociationField

public class AssociationField extends Topic
Represents an association field.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Topic
    • getAssociationType

      public AssociationType 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

      public List<RoleField> getFieldsForRoles()
      Returns the fields for the roles in this association type.
      Returns:
      List of RoleField objects
    • remove

      public void remove(LifeCycleListener listener)
      Description copied from class: Topic
      Removes the topic from the topic map.
      Overrides:
      remove in class Topic
      Parameters:
      listener - listener that gets call back from the deleting this topic, and any dependencies.p
    • getDeclaredByFields

      public Collection<RoleField> getDeclaredByFields()
      Gets the role fields that are assigned to this association field.
      Returns:
      Collection of RoleField