be.ac.vub.cocompose.lang.constraints
Interface ElementConstraint

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

public interface ElementConstraint
extends Constraint

Model element constraint interface.

Since:
0.2.0
Version:
0.2.0
Author:
Dennis Wagelaar

Method Summary
 void addConstrainedElement(ModelElement constrainedElement)
          Adds a constrained element.
 Collection getConstrainedElements()
           
 void removeConstrainedElement(ModelElement constrainedElement)
          Removes a constrained element.
 
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, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, 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

getConstrainedElements

public Collection getConstrainedElements()

addConstrainedElement

public void addConstrainedElement(ModelElement constrainedElement)
Adds a constrained element.

Parameters:
constrainedElement - - the element to add.

removeConstrainedElement

public void removeConstrainedElement(ModelElement constrainedElement)
Removes a constrained element.

Parameters:
constrainedElement - - the element to remove.