KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.modfact.jmi.repository.javax.jmi.model;
2 import org.objectweb.modfact.jmi.reflect.*;
3 public class ConstrainsImpl extends RefAssociationImpl implements javax.jmi.model.Constrains {
4
5     public boolean exists(javax.jmi.model.Constraint constraint,javax.jmi.model.ModelElement constrainedElement) throws javax.jmi.reflect.JmiException {
6         return refLinkExists(constraint,constrainedElement);
7     }
8     public boolean add(javax.jmi.model.Constraint constraint,javax.jmi.model.ModelElement constrainedElement) throws javax.jmi.reflect.JmiException {
9         return refAddLink(constraint,constrainedElement);
10      }
11     public boolean remove(javax.jmi.model.Constraint constraint,javax.jmi.model.ModelElement constrainedElement) throws javax.jmi.reflect.JmiException {
12         return refRemoveLink(constraint,constrainedElement);
13      }
14     public java.util.Collection JavaDoc getConstraint(javax.jmi.model.ModelElement constrainedElement) throws javax.jmi.reflect.JmiException {
15         return (java.util.List JavaDoc) refQuery("constrainedElement",constrainedElement);
16      }
17     public java.util.Collection JavaDoc getConstrainedElement(javax.jmi.model.Constraint constraint) throws javax.jmi.reflect.JmiException {
18         return (java.util.List JavaDoc) refQuery("constraint",constraint);
19      }
20 }
21
Popular Tags