be.ac.vub.cocompose.lang.core
Interface Concept

All Superinterfaces:
Cloneable, Element, ModelElement, Namespace, RefinedElement, RelationElement, VisitedElement
All Known Implementing Classes:
DefaultConcept

public interface Concept
extends RefinedElement

The Concept language element interface.

Since:
0.1.0
Version:
0.2.9, 26/04/2004
Author:
Dennis Wagelaar

Method Summary
 void addPartOf(int index, Role partOf)
          Adds a role of which this concept is a part.
 void addPartOf(Role partOf)
          Adds a role of which this concept is a part.
 List getPartOf()
          Gets the roles of which this concept is a part.
 void removePartOf(Role partOf)
          Removes a role of which this concept is a part.
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.RefinedElement
addInheritsFrom, addInheritsFrom, addSuperimposesOn, addSuperimposesOn, getDefaultElementOf, getIconUri, getInheritsFrom, getRefinements, getSuperimposesOn, removeInheritsFrom, removeSuperimposesOn, setDefaultElementOf, setIconUri
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.RelationElement
addRelationship, addRelationship, getBackgroundColor, getPosition, getRelationships, getSourceRelationships, getTargetRelationships, removeRelationship, setBackgroundColor, setPosition
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, getRootNamespace, setId, setName, setNamespace
 
Methods inherited from interface be.ac.vub.cocompose.lang.Element
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface be.ac.vub.cocompose.lang.VisitedElement
accept
 

Method Detail

getPartOf

public List getPartOf()
Gets the roles of which this concept is a part.

Returns:
the roles.

addPartOf

public void addPartOf(Role partOf)
Adds a role of which this concept is a part.

Parameters:
partOf - the role.

addPartOf

public void addPartOf(int index,
                      Role partOf)
Adds a role of which this concept is a part.

Parameters:
index - the index at which to add the element.
partOf - the role.

removePartOf

public void removePartOf(Role partOf)
Removes a role of which this concept is a part.

Parameters:
partOf - the role.