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 name , String annotation) throws javax.jmi.reflect.JmiException { 10 11 java.util.List list = new java.util.Vector (); 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 newEnum(String n) { 21 throw new RuntimeException ("invalide type"); 22 } 23 public RefStructImpl newStruct(String n) { 24 throw new RuntimeException ("invalide type"); 25 } 26 } | Popular Tags |