net.sf.quarrel.uml
Class Model

java.lang.Object
  extended bynet.sf.quarrel.uml.Model

public class Model
extends java.lang.Object

Represents a UML model. Top level container for all other parts of the UML code.


Constructor Summary
Model()
           
 
Method Summary
 boolean elementExists(java.lang.String name)
          Deprecated. this method will be removed or made private in the future
 java.util.Iterator elements()
          Returns an Iterator for the set of Elements in the model.
 java.util.Iterator relationships()
          Returns an iterator over the set of relationships in the model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

elements

public java.util.Iterator elements()
Returns an Iterator for the set of Elements in the model. The underlying List can not be modified using this Iterator.

Returns:
an Iterator over the set of Elements

relationships

public java.util.Iterator relationships()
Returns an iterator over the set of relationships in the model

Returns:
an Iterator over the set of Relationship objects.

elementExists

public boolean elementExists(java.lang.String name)
Deprecated. this method will be removed or made private in the future

Returns a boolean value indicating if an element exists by name.

Parameters:
name - the name of the requested element
Returns:
true if an element exists with the specified name.


Copyright © 2006-2007. All Rights Reserved.