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.10, 29/04/2004
Author:
Dennis Wagelaar

Method Summary
 void addConstrainedElement(int index, ModelElement constrainedElement)
          Adds a constrained element.
 void addConstrainedElement(ModelElement constrainedElement)
          Adds a constrained element.
 List getConstrainedElements()
          Gets the constrained elements.
 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, 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

getConstrainedElements

public List getConstrainedElements()
Gets the constrained elements.

Returns:
the constrained elements.

addConstrainedElement

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

Parameters:
constrainedElement - the element to add.

addConstrainedElement

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

Parameters:
index - the index at which to add the element.
constrainedElement - the element to add.

removeConstrainedElement

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

Parameters:
constrainedElement - the element to remove.