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.12, 20/05/2004
Author:
Dennis Wagelaar

Method Summary
 void addDependsOn(Model model)
          Adds a model to which this model references and increases the usage count.
 RefinedElement getDefaultElement()
          Gets the default element 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 setDefaultElement(RefinedElement element)
          Sets the default element 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
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.

setDefaultElement

public void setDefaultElement(RefinedElement element)
Sets the default element for this solution pattern.

Parameters:
element - the default element.

getDefaultElement

public RefinedElement getDefaultElement()
Gets the default element for this solution pattern.

Returns:
the default element.

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.