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