|
|||||||||||
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.constraints.DefaultConstraint
be.ac.vub.cocompose.lang.impl.constraints.DefaultElementConstraint
Model element constraint.
Constructor Summary | |
DefaultElementConstraint()
|
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
void |
acceptSuper(ModelVisitor modelVisitor)
Invokes superclass accept(). |
void |
addConstrainedElement(int index,
ModelElement constrainedElement)
Adds a constrained element. |
void |
addConstrainedElement(ModelElement constrainedElement)
Adds a constrained element. |
protected void |
concreteCheck()
Checks whether the constraint holds. |
List |
getConstrainedElements()
Returns the constrained elements. |
void |
removeConstrainedElement(ModelElement constrainedElement)
Removes a constrained element. |
Methods inherited from class be.ac.vub.cocompose.lang.impl.constraints.DefaultConstraint |
check, getOwnerConstraint, isInverted, setInverted, setOwnerConstraint |
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 |
getId, getModel, getName, getNamespace, setId, 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.constraints.Constraint |
check, getOwnerConstraint, isInverted, setInverted, setOwnerConstraint |
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 |
Constructor Detail |
public DefaultElementConstraint()
Method Detail |
public List getConstrainedElements()
getConstrainedElements
in interface ElementConstraint
public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
accept
in class DefaultConstraint
modelVisitor
- The visitor to accept.
ModelElementException
public void acceptSuper(ModelVisitor modelVisitor) throws ModelElementException
acceptSuper
in class DefaultConstraint
modelVisitor
- The visitor to accept.
ModelElementException
accept(ModelVisitor)
public void addConstrainedElement(ModelElement constrainedElement)
addConstrainedElement
in interface ElementConstraint
constrainedElement
- the element to add.public void addConstrainedElement(int index, ModelElement constrainedElement)
addConstrainedElement
in interface ElementConstraint
index
- the index at which to add the element.constrainedElement
- the element to add.public void removeConstrainedElement(ModelElement constrainedElement)
removeConstrainedElement
in interface ElementConstraint
constrainedElement
- the element to remove.protected void concreteCheck() throws ModelElementException
concreteCheck
in class DefaultConstraint
ModelElementException
- - if the constraint doesn't hold.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |