1 package org.objectweb.modfact.jmi.repository.simpletrl; 2 import org.objectweb.modfact.jmi.reflect.*; 3 public class ContainsRulesImpl extends RefAssociationImpl implements simpletrl.ContainsRules { 4 5 public boolean exists(simpletrl.Rule end0,simpletrl.RulesUnit end1) throws javax.jmi.reflect.JmiException { 6 return refLinkExists(end0,end1); 7 } 8 public boolean add(simpletrl.Rule end0,simpletrl.RulesUnit end1) throws javax.jmi.reflect.JmiException { 9 return refAddLink(end0,end1); 10 } 11 public boolean remove(simpletrl.Rule end0,simpletrl.RulesUnit end1) throws javax.jmi.reflect.JmiException { 12 return refRemoveLink(end0,end1); 13 } 14 public java.util.Collection getRules(simpletrl.RulesUnit end) throws javax.jmi.reflect.JmiException { 15 return (java.util.List ) refQuery("unit",end); 16 } 17 public simpletrl.RulesUnit getUnit(simpletrl.Rule rules) throws javax.jmi.reflect.JmiException { 18 java.util.Collection c =refQuery("rules",rules); 19 if(c.isEmpty()) return null; 20 return (simpletrl.RulesUnit) c.iterator().next(); 21 } 22 } 23 | Popular Tags |