KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > repository > javax > jmi > model > GeneralizesImpl


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 JavaDoc getSupertype(javax.jmi.model.GeneralizableElement subtype) throws javax.jmi.reflect.JmiException {
15         return (java.util.List JavaDoc) refQuery("subtype",subtype);
16      }
17     public java.util.Collection JavaDoc getSubtype(javax.jmi.model.GeneralizableElement supertype) throws javax.jmi.reflect.JmiException {
18         return (java.util.List JavaDoc) refQuery("supertype",supertype);
19      }
20 }
21
Popular Tags