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 val , String type , boolean isFromMmSrc) throws javax.jmi.reflect.JmiException { 10 11 java.util.List list = new java.util.Vector (); 12 list.add(val); 13 list.add(type); 14 list.add(new Boolean (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 newEnum(String n) { 22 throw new RuntimeException ("invalide EnumType : '" + n + "'"); 23 } 24 public RefStructImpl newStruct(String n) { 25 throw new RuntimeException ("invalide StructureType: '" + n + "'"); 26 } 27 } | Popular Tags |