|
|||||||||||
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
Root class for each CoCompose language element.
Constructor Summary | |
DefaultModelElement()
|
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
String |
getId()
Gets the Id of this element. |
Model |
getModel()
Gets the root model for this element, if any. |
String |
getName()
Gets the name of this ModelElement. |
Namespace |
getNamespace()
Gets the namespace that contains this element. |
Namespace |
getRootNamespace()
Gets the root namespace for this element, if any. |
void |
setId(String id)
Ignored. |
void |
setName(String name)
Sets the name of this ModelElement. |
void |
setNamespace(Namespace namespace)
Sets the namespace that contains this element. |
String |
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.Element |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public DefaultModelElement()
Method Detail |
public String getName()
getName
in interface ModelElement
public void setName(String name) throws ModelElementException
setName
in interface ModelElement
name
- - the name of this ModelElement.
ModelElementException
- - if the name is already used within the namespace.public Namespace getNamespace()
getNamespace
in interface ModelElement
public void setNamespace(Namespace namespace)
setNamespace
in interface ModelElement
namespace
- - the namespace.public String getId()
getId
in interface ModelElement
public void setId(String id)
setId
in interface ModelElement
id
- - the Id.public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
modelVisitor
- The visitor to accept.
ModelElementException
public String toString()
Object.toString()
public Namespace getRootNamespace()
getRootNamespace
in interface ModelElement
public Model getModel()
getModel
in interface ModelElement
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |