archimate.uml
Class UMLAdapter

java.lang.Object
  extended by archimate.uml.UMLAdapter

public class UMLAdapter
extends java.lang.Object

Utility class reading out UML models

Author:
Samuel Esposito

Constructor Summary
UMLAdapter(org.eclipse.uml2.uml.Package myPackage)
          Creates new UMLAdapter for the given package
 
Method Summary
 java.lang.String getElementName(java.lang.String stereotypeName)
          Searches for the first UML element which has the given stereotype applied to it
 java.util.ArrayList<java.lang.String> getElementNames(java.lang.String stereotypeName)
          Searches for all UML elements which have the given stereotype applied to it
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLAdapter

public UMLAdapter(org.eclipse.uml2.uml.Package myPackage)
Creates new UMLAdapter for the given package

Parameters:
myPackage - The package to read
Method Detail

getElementName

public java.lang.String getElementName(java.lang.String stereotypeName)
Searches for the first UML element which has the given stereotype applied to it

Parameters:
stereotypeName - The name of the stereotype to match
Returns:
The name of the found UML element

getElementNames

public java.util.ArrayList<java.lang.String> getElementNames(java.lang.String stereotypeName)
Searches for all UML elements which have the given stereotype applied to it

Parameters:
stereotypeName - The name of the stereotype to match
Returns:
The names of the found UML elements