|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.lang.impl.DefaultElement
be.ac.vub.cocompose.lang.impl.core.DefaultModelElement
be.ac.vub.cocompose.lang.impl.core.DefaultNamespace
be.ac.vub.cocompose.lang.impl.core.DefaultModel
The Model language element.
Constructor Summary | |
DefaultModel()
Creates a DefaultModel. |
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
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 |
setId(String id)
Also updates the ownedIds. |
void |
setUri(String uri)
Sets the model URI (e.g. |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultNamespace |
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, getRootNamespace, isRegistered, registerNameChange, removeOwnedElement, translateIndex, translateIndex |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultModelElement |
getFullName, getId, getModel, getName, getNamespace, setName, setNamespace, toString |
Methods inherited from class be.ac.vub.cocompose.lang.impl.DefaultElement |
addPropertyChangeListener, firePropertyChange, fireStructureChange, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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, setName, setNamespace |
Methods inherited from interface be.ac.vub.cocompose.lang.Element |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public DefaultModel()
Method Detail |
public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
accept
in class DefaultNamespace
modelVisitor
- The visitor to accept.
ModelElementException
public String getUri()
getUri
in interface Model
public void setUri(String uri)
setUri
in interface Model
uri
- - the URI.public void setDefaultConcept(Concept concept)
setDefaultConcept
in interface Model
concept
- the default concept.public Concept getDefaultConcept()
getDefaultConcept
in interface Model
public void setDefaultRole(Role role)
setDefaultRole
in interface Model
role
- the default role.public Role getDefaultRole()
getDefaultRole
in interface Model
public void setId(String id)
setId
in interface ModelElement
setId
in class DefaultModelElement
id
- - the Id.ModelElement.setId(java.lang.String)
public Set getDependsOn()
getDependsOn
in interface Model
public void addDependsOn(Model model)
addDependsOn
in interface Model
model
- a model to which this model references.public void removeDependsOn(Model model)
removeDependsOn
in interface Model
model
- a model to which this model referenced.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |