com.finalist.mmbase.uml
Class MMBaseRelationHelper

java.lang.Object
  extended by com.finalist.mmbase.uml.MMBaseRelationHelper

public class MMBaseRelationHelper
extends java.lang.Object

Helper classes to get access to relation specific uml model elements.

Version:
$Revision: 1.4 $, $Date: 2004/12/08 23:27:32 $
Author:
Kors van Beem - Finalist IT Group

Constructor Summary
MMBaseRelationHelper(MMBaseHelper model)
          Default constructor.
 
Method Summary
 MMBaseHelper getModel()
           
 java.util.Collection getRelationDefinitions(java.util.Collection elements)
          Return the static HashMap which contains all the relationDefinitions.
 java.util.Collection getRelationReferences(java.util.Collection elements)
          Add a relation name to the static hashmap.
 java.util.Collection getRelations(java.lang.Object object)
          Get a collection of MMBaseRelationVo's which contains information about the relations associated with the given object.
 java.lang.String getRelDef(java.lang.Object object)
          Get name of the related relation for the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBaseRelationHelper

public MMBaseRelationHelper(MMBaseHelper model)
Default constructor.

Method Detail

getModel

public MMBaseHelper getModel()

getRelations

public java.util.Collection getRelations(java.lang.Object object)
Get a collection of MMBaseRelationVo's which contains information about the relations associated with the given object.

Parameters:
object - The ModelElement to find the relations of.
Returns:
A collection of MMBaseRelationVo's

getRelDef

public java.lang.String getRelDef(java.lang.Object object)
Get name of the related relation for the specified object. The object should have the RelDef stereotype.

Parameters:
object - The ModelElement to find the relations of.
Returns:
String with the builder name for which a reldef has to be created.

getRelationReferences

public java.util.Collection getRelationReferences(java.util.Collection elements)
Add a relation name to the static hashmap.

Parameters:
elements - Collection of ModelElements.
Returns:
A collection of RelationVo's containing the information of relations.

getRelationDefinitions

public java.util.Collection getRelationDefinitions(java.util.Collection elements)
Return the static HashMap which contains all the relationDefinitions.

Parameters:
elements - The Collection of elements to check werther they are AssociationEnds.
Returns:
Collection of MMBaseRelationDefinitions.


Copyright © 2003-2006 mmapps. All Rights Reserved.