Exemplo n.º 1
0
 public static int getContainedType(MethodElement me) {
   EObject container = me.eContainer();
   if (container == null) return NONE;
   if (container instanceof MethodPermission) return METHOD_PERMISSION;
   if (container instanceof MethodTransaction) return METHOD_TRANSACTION;
   if (container instanceof ExcludeList) return EXCLUDE_LIST;
   return NONE;
 }
Exemplo n.º 2
0
 public static ExcludeList getExcludeList(MethodElement me) {
   if (EXCLUDE_LIST == getContainedType(me)) return (ExcludeList) me.eContainer();
   return null;
 }
Exemplo n.º 3
0
 public static MethodTransaction getMethodTransaction(MethodElement me) {
   if (METHOD_TRANSACTION == getContainedType(me)) return (MethodTransaction) me.eContainer();
   return null;
 }
Exemplo n.º 4
0
 public static MethodPermission getMethodPermission(MethodElement me) {
   if (METHOD_PERMISSION == getContainedType(me)) return (MethodPermission) me.eContainer();
   return null;
 }