KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > repository > javax > jmi > model > StructureFieldClassImpl


1 package org.objectweb.modfact.jmi.repository.javax.jmi.model;
2
3 import org.objectweb.modfact.jmi.reflect.*;
4 public class StructureFieldClassImpl extends org.objectweb.modfact.jmi.reflect.RefClassImpl implements javax.jmi.model.StructureFieldClass {
5     public javax.jmi.model.StructureField createStructureField() throws javax.jmi.reflect.JmiException {
6          return (javax.jmi.model.StructureField) refCreateInstance(null);
7     }
8
9     public javax.jmi.model.StructureField createStructureField(String JavaDoc name , String JavaDoc annotation) throws javax.jmi.reflect.JmiException {
10
11         java.util.List JavaDoc list = new java.util.Vector JavaDoc();
12          list.add(name);
13          list.add(annotation);
14          return (javax.jmi.model.StructureField) refCreateInstance(list);
15     }
16
17     public RefObjectImpl newObject() {
18         return new org.objectweb.modfact.jmi.repository.javax.jmi.model.StructureFieldImpl();
19     }
20     public Class JavaDoc newEnum(String JavaDoc n) {
21          throw new RuntimeException JavaDoc("invalide type");
22     }
23     public RefStructImpl newStruct(String JavaDoc n) {
24 throw new RuntimeException JavaDoc("invalide type");
25     }
26 }//end of interface
27
Popular Tags