SysML

org.topcased.modeler.sysml.requirementdiagram.util
Class RequirementTools

java.lang.Object
  extended by org.topcased.modeler.sysml.requirementdiagram.util.RequirementTools

public class RequirementTools
extends java.lang.Object


Constructor Summary
RequirementTools()
           
 
Method Summary
static java.lang.String getFromNotation(org.eclipse.uml2.uml.Element element, org.eclipse.uml2.uml.Element parent)
          Get a string representation of the origin of a SysML element
static PackageSYSML getPackageSYSML(org.eclipse.uml2.uml.Element element)
          Return the requirement definition in which an element is contained
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequirementTools

public RequirementTools()
Method Detail

getPackageSYSML

public static PackageSYSML getPackageSYSML(org.eclipse.uml2.uml.Element element)
Return the requirement definition in which an element is contained

Parameters:
element -
Returns:
the requirement definition

getFromNotation

public static java.lang.String getFromNotation(org.eclipse.uml2.uml.Element element,
                                               org.eclipse.uml2.uml.Element parent)
Get a string representation of the origin of a SysML element

Parameters:
element - an SysML element
parent - the element which graphically contains the SysML Type element
Returns:
a fully qualified string representation or empty string if element isn't contained in an external requirement definition

SysML

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