1 package org.objectweb.modfact.jmi.repository.javax.jmi.model; 2 import org.objectweb.modfact.jmi.reflect.*; 3 public class AliasesImpl extends RefAssociationImpl implements javax.jmi.model.Aliases { 4 5 public boolean exists(javax.jmi.model.Import importer,javax.jmi.model.Namespace imported) throws javax.jmi.reflect.JmiException { 6 return refLinkExists(importer,imported); 7 } 8 public boolean add(javax.jmi.model.Import importer,javax.jmi.model.Namespace imported) throws javax.jmi.reflect.JmiException { 9 return refAddLink(importer,imported); 10 } 11 public boolean remove(javax.jmi.model.Import importer,javax.jmi.model.Namespace imported) throws javax.jmi.reflect.JmiException { 12 return refRemoveLink(importer,imported); 13 } 14 public java.util.Collection getImporter(javax.jmi.model.Namespace imported) throws javax.jmi.reflect.JmiException { 15 return (java.util.List ) refQuery("imported",imported); 16 } 17 public javax.jmi.model.Namespace getImported(javax.jmi.model.Import importer) throws javax.jmi.reflect.JmiException { 18 java.util.Collection c =refQuery("importer",importer); 19 if(c.isEmpty()) return null; 20 return (javax.jmi.model.Namespace) c.iterator().next(); 21 } 22 } 23 | Popular Tags |