コード例 #1
0
 public static String getNativeComponentNameForComponent(org.eclipse.uml2.uml.Class c) {
   org.eclipse.papyrus.RobotML.System sys =
       org.eclipse.uml2.uml.util.UMLUtil.getStereotypeApplication(
           c, org.eclipse.papyrus.RobotML.System.class);
   if (sys == null) {
     return null;
   }
   return sys.getLibraryComponentName();
 }
コード例 #2
0
 public static Boolean hasNativeImplementation(org.eclipse.uml2.uml.Class c) {
   org.eclipse.papyrus.RobotML.System sys =
       org.eclipse.uml2.uml.util.UMLUtil.getStereotypeApplication(
           c, org.eclipse.papyrus.RobotML.System.class);
   if (sys == null) {
     return false;
   }
   return sys.isNative();
 }