1 2 package SOFA.SOFAnode.Made.TIR.Impl; 3 import java.rmi.RemoteException ; 4 5 import SOFA.SOFAnode.Made.TIR.CDLType; 6 import SOFA.SOFAnode.Made.TIR.DefinitionKind; 7 import SOFA.SOFAnode.Made.TIR.StateKind; 8 9 public class NotYetInRep implements CDLType { 10 DefinitionKindImpl defKindImpl; 11 12 public int defKind; 13 public IdentificationImpl id; 14 public AbsoluteNameImpl nm; 15 public int primKind; 16 17 public NotYetInRep(String absname, String name, String version) throws RemoteException { 18 defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_none); 19 defKind = DefinitionKind.dk_Typedef; 20 nm = new AbsoluteNameImpl(absname); 21 StringBuffer sb = new StringBuffer (); 22 for(int i=1;i<nm.size();i++) { 23 sb.append("::"+nm.elementAt(i)); 24 } 25 id = new IdentificationImpl(nm.elementAt(0), sb.toString(), version); 26 primKind = -1; 27 } 28 29 public NotYetInRep(int primitiveKind) throws RemoteException { 30 defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_none); 31 defKind = DefinitionKind.dk_Primitive; 32 primKind = primitiveKind; 33 id = null; 34 nm = null; 35 } 36 37 38 public DefinitionKind get_def_kind() throws RemoteException { 39 return (DefinitionKind) defKindImpl; 40 } 41 42 43 public StateKind get_state() throws RemoteException { 44 return null; 45 } 46 } 47 | Popular Tags |