getModelElement

Returns the model element associated with the name. In some sense, this model violates encapsulation for ModelElements, but since the client knows the unique name of the ModelElement, we assume that the client knows what they are doing.

Return

The named ModelElement if it exists in the model by the supplied name, null otherwise

Parameters

name

The name of the model element, the name must not be null


Returns the model element that has the provided unique id or null if not found

Return

the ModelElement

Parameters

id

the identifier getId() of the desired ModelElement