UML

org.topcased.modeler.uml
Class UMLLabel

java.lang.Object
  extended by org.topcased.modeler.uml.UMLLabel

public final class UMLLabel
extends java.lang.Object

This class computes the text for the UML2 objects.
These labels are compliant with the UML2 Superstructure Spec


Method Summary
static java.lang.String getMultiplicityText(org.eclipse.uml2.uml.MultiplicityElement multiplicity)
          Returns the multiplicity label
static java.lang.String getPropertyModifiersText(org.eclipse.uml2.uml.Property property)
          Compute a String value used to represent the modifiers properties of a given Property
static java.lang.String getStereotypesNotation(org.eclipse.uml2.uml.Element uml2Element)
          Get a string representation of all the applied stereoptypes on the given UML2 element.
static java.lang.String getVisibilityNotation(org.eclipse.uml2.uml.VisibilityKind visibility)
          Return a representation for a given visibility kind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMultiplicityText

public static java.lang.String getMultiplicityText(org.eclipse.uml2.uml.MultiplicityElement multiplicity)
Returns the multiplicity label

Parameters:
multiplicity - the multiplicity element
Returns:
the associated text

getStereotypesNotation

public static java.lang.String getStereotypesNotation(org.eclipse.uml2.uml.Element uml2Element)
Get a string representation of all the applied stereoptypes on the given UML2 element.

Parameters:
uml2Element - an UML2 element
Returns:
a fully qualified string representation or empty string if no applied stereotypes

getVisibilityNotation

public static java.lang.String getVisibilityNotation(org.eclipse.uml2.uml.VisibilityKind visibility)
Return a representation for a given visibility kind

Parameters:
visibility - the visibily
Returns:
a string that represents the visibility kind

getPropertyModifiersText

public static java.lang.String getPropertyModifiersText(org.eclipse.uml2.uml.Property property)
Compute a String value used to represent the modifiers properties of a given Property

Parameters:
property - the Property element
Returns:
a string that represents the Property modifiers

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.