KickJava   Java API By Example, From Geeks To Geeks.

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


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