1 package org.objectweb.modfact.jmi.repository.simpletrl; 2 import org.objectweb.modfact.jmi.reflect.*; 3 public class CallsRuleImpl extends RefAssociationImpl implements simpletrl.CallsRule { 4 5 public boolean exists(simpletrl.CalledRule end0,simpletrl.RuleCallExp end1) throws javax.jmi.reflect.JmiException { 6 return refLinkExists(end0,end1); 7 } 8 public boolean add(simpletrl.CalledRule end0,simpletrl.RuleCallExp end1) throws javax.jmi.reflect.JmiException { 9 return refAddLink(end0,end1); 10 } 11 public boolean remove(simpletrl.CalledRule end0,simpletrl.RuleCallExp end1) throws javax.jmi.reflect.JmiException { 12 return refRemoveLink(end0,end1); 13 } 14 public simpletrl.CalledRule getRule(simpletrl.RuleCallExp ruleCallExp) throws javax.jmi.reflect.JmiException { 15 java.util.Collection c =refQuery("ruleCallExp",ruleCallExp); 16 if(c.isEmpty()) return null; 17 return (simpletrl.CalledRule) c.iterator().next(); 18 } 19 } 20 | Popular Tags |