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.4, 22/01/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.
 Model getDefaultConceptOf()
          Gets the model of which this concept is the default concept, if any.
 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.
 void setDefaultConceptOf(Model model)
          Sets the model of which this concept is the default concept, if any.
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.RefinedElement
addInheritsFrom, addInheritsFrom, addSuperimposesOn, addSuperimposesOn, getIconUri, getInheritsFrom, getRefinements, getSuperimposesOn, removeInheritsFrom, removeSuperimposesOn, 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, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, 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.

getDefaultConceptOf

public Model getDefaultConceptOf()
Gets the model of which this concept is the default concept, if any.

Returns:
the model of which this concept is the default concept, if any.

setDefaultConceptOf

public void setDefaultConceptOf(Model model)
Sets the model of which this concept is the default concept, if any.

Parameters:
model - the model of which this concept is the default concept, if any.