com.finalist.mmbase.uml
Class MMBaseRelationVo

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

public class MMBaseRelationVo
extends java.lang.Object

Value object that models all MMbase relations define in UML. Both dependencies and associations are supported. Copyright 2003 Finalist IT-Group -- all rights reserved

Version:
$Revision: 1.3 $, $Date: 2004/10/23 08:54:39 $
Author:
Kors van Beem.

Constructor Summary
MMBaseRelationVo(java.lang.String type, java.lang.String sourceName, java.lang.String targetName, java.lang.String sourceCardinalityLower, java.lang.String sourceCardinalityUpper, java.lang.String targetCardinalityLower, java.lang.String targetCardinalityUpper, java.lang.String directed, java.lang.String targetRoleName, org.omg.uml.foundation.core.ModelElement targetModelElement)
          The constructor
 
Method Summary
 java.lang.String getDirected()
          Getter of the directed value.
 java.lang.String getSourceCardinalityLower()
          Getter of the sourceCardinalityLower.
 java.lang.String getSourceCardinalityUpper()
          Getter of the sourceCardinalityUpper.
 java.lang.String getSourceName()
          Getter of the sourcename.
 java.lang.String getTargetCardinalityLower()
          Getter of the targetCardinalityLower.
 java.lang.String getTargetCardinalityUpper()
          Getter of the targetCardinalityUpper.
 org.omg.uml.foundation.core.ModelElement getTargetModelElement()
          Getter of the target object.
 java.lang.String getTargetName()
          Getter of the targetname.
 java.lang.String getTargetRoleName()
          Getter of the targetRoleName value.
 java.lang.String getType()
          Getter of the type.
 void setDirected(java.lang.String directed)
          Setter of the directed.
 void setSourceCardinalityLower(java.lang.String sourceCardinalityLower)
          Setter of the sourceCardinalityLower.
 void setSourceCardinalityUpper(java.lang.String sourceCardinalityUpper)
          Setter of the sourceCardinalityUpper.
 void setSourceName(java.lang.String sourceName)
          Setter of the sourcename.
 void setTargetCardinalityLower(java.lang.String targetCardinalityLower)
          Setter of the targetCardinalityLower.
 void setTargetCardinalityUpper(java.lang.String targetCardinalityUpper)
          Setter of the targetCardinalityUpper.
 void setTargetModelElement(org.omg.uml.foundation.core.ModelElement targetModelElement)
          Setter of the targetModelElement.
 void setTargetName(java.lang.String targetName)
          Setter of the targetname.
 void setTargetRoleName(java.lang.String targetRoleName)
          Setter of the targetRoleName.
 void setType(java.lang.String type)
          Setter of the stereo type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBaseRelationVo

public MMBaseRelationVo(java.lang.String type,
                        java.lang.String sourceName,
                        java.lang.String targetName,
                        java.lang.String sourceCardinalityLower,
                        java.lang.String sourceCardinalityUpper,
                        java.lang.String targetCardinalityLower,
                        java.lang.String targetCardinalityUpper,
                        java.lang.String directed,
                        java.lang.String targetRoleName,
                        org.omg.uml.foundation.core.ModelElement targetModelElement)
The constructor

Parameters:
type - Stereotype on an attribute.
sourceName - Classname on sourceside of the relation.
targetName - Classname on targetside of the relation.
sourceCardinalityLower - Minimum cardinality on the sourceside of the relation.
sourceCardinalityUpper - Maximum cardinality on the sourceside of the relation.
targetCardinalityLower - Minimum cardinality on the targetside of the relation.
targetCardinalityUpper - Maximum cardinality on the targetside of the relation.
directed - Defines if the relation is directed or undirected.
targetRoleName - Contains the role of the association.
targetModelElement - Contains a link to the modelElement on the otherside of the relation.
Method Detail

getType

public java.lang.String getType()
Getter of the type.

Returns:
the type.

setType

public void setType(java.lang.String type)
Setter of the stereo type.

Parameters:
type - the stereotype

getSourceName

public java.lang.String getSourceName()
Getter of the sourcename.

Returns:
the sourceName.

setSourceName

public void setSourceName(java.lang.String sourceName)
Setter of the sourcename.

Parameters:
sourceName - the sourceName

getTargetName

public java.lang.String getTargetName()
Getter of the targetname.

Returns:
the targetName.

setTargetName

public void setTargetName(java.lang.String targetName)
Setter of the targetname.

Parameters:
targetName - the targetName

getSourceCardinalityLower

public java.lang.String getSourceCardinalityLower()
Getter of the sourceCardinalityLower.

Returns:
the sourceCardinalityLower.

setSourceCardinalityLower

public void setSourceCardinalityLower(java.lang.String sourceCardinalityLower)
Setter of the sourceCardinalityLower.

Parameters:
sourceCardinalityLower - the sourceCardinalityLower

getSourceCardinalityUpper

public java.lang.String getSourceCardinalityUpper()
Getter of the sourceCardinalityUpper.

Returns:
the sourceCardinalityUpper.

setSourceCardinalityUpper

public void setSourceCardinalityUpper(java.lang.String sourceCardinalityUpper)
Setter of the sourceCardinalityUpper.

Parameters:
sourceCardinalityUpper - the sourceCardinalityUpper

getTargetCardinalityLower

public java.lang.String getTargetCardinalityLower()
Getter of the targetCardinalityLower.

Returns:
the targetCardinalityLower.

setTargetCardinalityLower

public void setTargetCardinalityLower(java.lang.String targetCardinalityLower)
Setter of the targetCardinalityLower.

Parameters:
targetCardinalityLower - the targetCardinalityLower

getTargetCardinalityUpper

public java.lang.String getTargetCardinalityUpper()
Getter of the targetCardinalityUpper.

Returns:
the targetCardinalityUpper.

setTargetCardinalityUpper

public void setTargetCardinalityUpper(java.lang.String targetCardinalityUpper)
Setter of the targetCardinalityUpper.

Parameters:
targetCardinalityUpper - the targetCardinalityUpper

getDirected

public java.lang.String getDirected()
Getter of the directed value.

Returns:
the directed value.

setDirected

public void setDirected(java.lang.String directed)
Setter of the directed.

Parameters:
directed - the directed value

getTargetRoleName

public java.lang.String getTargetRoleName()
Getter of the targetRoleName value.

Returns:
the targetRoleName value.

setTargetRoleName

public void setTargetRoleName(java.lang.String targetRoleName)
Setter of the targetRoleName.

Parameters:
targetRoleName - the targetRoleName value

getTargetModelElement

public org.omg.uml.foundation.core.ModelElement getTargetModelElement()
Getter of the target object.

Returns:
An object of the UMLAssociationEnd class.

setTargetModelElement

public void setTargetModelElement(org.omg.uml.foundation.core.ModelElement targetModelElement)
Setter of the targetModelElement.

Parameters:
targetModelElement - the targetModelElement


Copyright © 2003-2006 mmapps. All Rights Reserved.