1 package org.objectweb.modfact.jmi.repository.javax.jmi.model; 2 3 import org.objectweb.modfact.jmi.reflect.*; 4 public class ReferenceClassImpl extends org.objectweb.modfact.jmi.reflect.RefClassImpl implements javax.jmi.model.ReferenceClass { 5 public javax.jmi.model.Reference createReference() throws javax.jmi.reflect.JmiException { 6 return (javax.jmi.model.Reference) refCreateInstance(null); 7 } 8 9 public javax.jmi.model.Reference createReference(String name , String annotation , javax.jmi.model.ScopeKind scope , javax.jmi.model.VisibilityKind visibility , javax.jmi.model.MultiplicityType multiplicity , boolean isChangeable) throws javax.jmi.reflect.JmiException { 10 11 java.util.List list = new java.util.Vector (); 12 list.add(name); 13 list.add(annotation); 14 list.add(scope); 15 list.add(visibility); 16 list.add(multiplicity); 17 list.add(new Boolean (isChangeable)); 18 return (javax.jmi.model.Reference) refCreateInstance(list); 19 } 20 21 public RefObjectImpl newObject() { 22 return new org.objectweb.modfact.jmi.repository.javax.jmi.model.ReferenceImpl(); 23 } 24 public Class newEnum(String n) { 25 throw new RuntimeException ("invalide type"); 26 } 27 public RefStructImpl newStruct(String n) { 28 throw new RuntimeException ("invalide type"); 29 } 30 } | Popular Tags |