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

All Superinterfaces:
Cloneable, Element, ModelElement, Namespace, VisitedElement
All Known Implementing Classes:
DefaultModel

public interface Model
extends Namespace

The Model language element interface.

Since:
0.1.0
Version:
0.2.13, 21/05/2004
Author:
Dennis Wagelaar

Method Summary
 void addDependsOn(Model model)
          Adds a model to which this model references and increases the usage count.
 Concept getDefaultConcept()
          Gets the default concept for this solution pattern.
 Role getDefaultRole()
          Gets the default role for this solution pattern.
 Set getDependsOn()
          Gets the models to which this model references.
 String getUri()
          Gets the model URI (e.g.
 void removeDependsOn(Model model)
          Removes a model to which this model referenced or decreases the usage count if greater than 0.
 void setDefaultConcept(Concept concept)
          Sets the default concept for this solution pattern.
 void setDefaultRole(Role role)
          Sets the default role for this solution pattern.
 void setUri(String uri)
          Sets the model URI (e.g.
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getFullName, 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

getUri

public String getUri()
Gets the model URI (e.g. "file://...").

Returns:
the URI.

setUri

public void setUri(String uri)
Sets the model URI (e.g. "file://...").

Parameters:
uri - - the URI.

setDefaultConcept

public void setDefaultConcept(Concept concept)
Sets the default concept for this solution pattern.

Parameters:
concept - the default concept.

getDefaultConcept

public Concept getDefaultConcept()
Gets the default concept for this solution pattern.

Returns:
the default Concept.

setDefaultRole

public void setDefaultRole(Role role)
Sets the default role for this solution pattern.

Parameters:
role - the default role.

getDefaultRole

public Role getDefaultRole()
Gets the default role for this solution pattern.

Returns:
the default role.

getDependsOn

public Set getDependsOn()
Gets the models to which this model references.

Returns:
the models to which this model references.

addDependsOn

public void addDependsOn(Model model)
Adds a model to which this model references and increases the usage count. If the model is already shared, only the usage count is increased.

Parameters:
model - a model to which this model references.

removeDependsOn

public void removeDependsOn(Model model)
Removes a model to which this model referenced or decreases the usage count if greater than 0.

Parameters:
model - a model to which this model referenced.