KickJava   Java API By Example, From Geeks To Geeks.

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


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