SysML

org.topcased.modeler.sysml.util
Class SysMLTools

java.lang.Object
  extended by org.topcased.modeler.sysml.util.SysMLTools

public class SysMLTools
extends java.lang.Object


Constructor Summary
SysMLTools()
           
 
Method Summary
static java.util.ArrayList<?> getAllObjects(org.eclipse.uml2.uml.Element element, java.lang.Class<?> clazz)
          Search in the given model every occurence of a type
static java.lang.String getMultiplicityText(org.eclipse.uml2.uml.MultiplicityElement multiplicity)
          Returns the multiplicity label
static java.lang.String getStereotypeNotation(org.eclipse.uml2.uml.Element element)
          Get a string representation of all the applied stereotypes on the given UML2 element or SysMLElement.
static java.lang.String getStereotypesList(org.eclipse.uml2.uml.Element element)
          Get the list of all the applied stereotypes on the given UML2 element or SysMLElement.
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
 

Constructor Detail

SysMLTools

public SysMLTools()
Method Detail

getStereotypesList

public static java.lang.String getStereotypesList(org.eclipse.uml2.uml.Element element)
Get the list of all the applied stereotypes on the given UML2 element or SysMLElement.

Parameters:
element - an UML2 element or a SysML Element
Returns:
the stereotype list or empty string if no applied stereotypes

getStereotypeNotation

public static java.lang.String getStereotypeNotation(org.eclipse.uml2.uml.Element element)
Get a string representation of all the applied stereotypes on the given UML2 element or SysMLElement.

Parameters:
element - an UML2 element or a SysML 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

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

getAllObjects

public static java.util.ArrayList<?> getAllObjects(org.eclipse.uml2.uml.Element element,
                                                   java.lang.Class<?> clazz)
Search in the given model every occurence of a type

Parameters:
element - the element to search in
clazz - the wanted type
Returns:
an ArrayList containing the wanted model objects

SysML

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