KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > repository > simpletrl > RulesUnitClassImpl


1 package org.objectweb.modfact.jmi.repository.simpletrl;
2 import simpletrl.*;
3 import org.objectweb.modfact.jmi.reflect.*;
4 public class RulesUnitClassImpl extends org.objectweb.modfact.jmi.reflect.RefClassImpl implements simpletrl.RulesUnitClass {
5     public simpletrl.RulesUnit createRulesUnit() throws javax.jmi.reflect.JmiException {
6          return (simpletrl.RulesUnit) refCreateInstance(null);
7     }
8
9     public simpletrl.RulesUnit createRulesUnit(String JavaDoc name , String JavaDoc srcMm , String JavaDoc targetMm) throws javax.jmi.reflect.JmiException {
10
11         java.util.List JavaDoc list = new java.util.Vector JavaDoc();
12          list.add(name);
13          list.add(srcMm);
14          list.add(targetMm);
15          return (simpletrl.RulesUnit) refCreateInstance(list);
16     }
17
18     public RefObjectImpl newObject() {
19         return new org.objectweb.modfact.jmi.repository.simpletrl.RulesUnitImpl();
20     }
21     public Class JavaDoc newEnum(String JavaDoc n) {
22          throw new RuntimeException JavaDoc("invalide EnumType : '" + n + "'");
23     }
24     public RefStructImpl newStruct(String JavaDoc n) {
25          throw new RuntimeException JavaDoc("invalide StructureType: '" + n + "'");
26     }
27 }//end of interface
28
Popular Tags