Dresden OCL Toolkit

tudresden.ocl.gui
Interface OCLEditorModel

All Known Implementing Classes:
JOCLEditorApp.DefaultOCLEditorModel, SimpleOCLEditorModel

public interface OCLEditorModel

A model for the OCLEditor. This model represents a list of OCL constraints that can be edited using the OCLEditor.

Author:
sz9

Method Summary
 void addConstraint()
          Add a fresh constraint to the model.
 void addConstraintChangeListener(ConstraintChangeListener ccl)
          Add a listener to be informed of changes in the model.
 ConstraintRepresentation getConstraintAt(int nIdx)
          Return the constraint with the specified index.
 int getConstraintCount()
          Return the number of constraints in this model.
 void removeConstraintAt(int nIdx)
          Remove the specified constraint from the model.
 void removeConstraintChangeListener(ConstraintChangeListener ccl)
          Remove a listener to be informed of changes in the model.
 

Method Detail

getConstraintCount

public int getConstraintCount()
Return the number of constraints in this model.


getConstraintAt

public ConstraintRepresentation getConstraintAt(int nIdx)
Return the constraint with the specified index.

Parameters:
nIdx - the index of the constraint to be returned. 0 <= nIdx < getConstraintCount()

addConstraint

public void addConstraint()
Add a fresh constraint to the model.


removeConstraintAt

public void removeConstraintAt(int nIdx)
Remove the specified constraint from the model.

Parameters:
nIdx - the index of the constraint to be removed. 0 <= nIdx < getConstraintCount()

addConstraintChangeListener

public void addConstraintChangeListener(ConstraintChangeListener ccl)
Add a listener to be informed of changes in the model.

Parameters:
ccl - the new listener

removeConstraintChangeListener

public void removeConstraintChangeListener(ConstraintChangeListener ccl)
Remove a listener to be informed of changes in the model.

Parameters:
ccl - the listener to be removed

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.