1 package org.objectweb.modfact.jmi.repository.javax.jmi.model; 2 import org.objectweb.modfact.jmi.reflect.*; 3 public class GeneralizesImpl extends RefAssociationImpl implements javax.jmi.model.Generalizes { 4 5 public boolean exists(javax.jmi.model.GeneralizableElement supertype,javax.jmi.model.GeneralizableElement subtype) throws javax.jmi.reflect.JmiException { 6 return refLinkExists(supertype,subtype); 7 } 8 public boolean add(javax.jmi.model.GeneralizableElement supertype,javax.jmi.model.GeneralizableElement subtype) throws javax.jmi.reflect.JmiException { 9 return refAddLink(supertype,subtype); 10 } 11 public boolean remove(javax.jmi.model.GeneralizableElement supertype,javax.jmi.model.GeneralizableElement subtype) throws javax.jmi.reflect.JmiException { 12 return refRemoveLink(supertype,subtype); 13 } 14 public java.util.List getSupertype(javax.jmi.model.GeneralizableElement subtype) throws javax.jmi.reflect.JmiException { 15 return (java.util.List ) refQuery("subtype",subtype); 16 } 17 public java.util.Collection getSubtype(javax.jmi.model.GeneralizableElement supertype) throws javax.jmi.reflect.JmiException { 18 return (java.util.List ) refQuery("supertype",supertype); 19 } 20 } 21 | Popular Tags |