KickJava   Java API By Example, From Geeks To Geeks.

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


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