KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > repository > simpletrl > ContainsRulesImpl


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 JavaDoc getRules(simpletrl.RulesUnit end) throws javax.jmi.reflect.JmiException {
15         return (java.util.List JavaDoc) refQuery("unit",end);
16      }
17     public simpletrl.RulesUnit getUnit(simpletrl.Rule rules) throws javax.jmi.reflect.JmiException {
18         java.util.Collection JavaDoc c =refQuery("rules",rules);
19         if(c.isEmpty()) return null;
20         return (simpletrl.RulesUnit) c.iterator().next();
21      }
22 }
23
Popular Tags