KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.modfact.jmi.repository.simpletrl;
2 import simpletrl.*;
3 import org.objectweb.modfact.jmi.reflect.*;
4 public class EnumLiteralClassImpl extends org.objectweb.modfact.jmi.reflect.RefClassImpl implements simpletrl.EnumLiteralClass {
5     public simpletrl.EnumLiteral createEnumLiteral() throws javax.jmi.reflect.JmiException {
6          return (simpletrl.EnumLiteral) refCreateInstance(null);
7     }
8
9     public simpletrl.EnumLiteral createEnumLiteral(String JavaDoc val , String JavaDoc type , boolean isFromMmSrc) throws javax.jmi.reflect.JmiException {
10
11         java.util.List JavaDoc list = new java.util.Vector JavaDoc();
12          list.add(val);
13          list.add(type);
14          list.add(new Boolean JavaDoc(isFromMmSrc));
15          return (simpletrl.EnumLiteral) refCreateInstance(list);
16     }
17
18     public RefObjectImpl newObject() {
19         return new org.objectweb.modfact.jmi.repository.simpletrl.EnumLiteralImpl();
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