1 2 package SOFA.SOFAnode.Made.CDL; 3 4 abstract class CompContainedIm extends CompObjectIm implements CompContained { 5 public ID id; 6 public CompContainer par; 7 public CompRepository rep; 8 public CompContainedIm(int okind, ID id, CompContainer parent, CompRepository rep) { 9 super(okind); 10 this.id = id; 11 par = parent; 12 this.rep = rep; 13 } 14 15 public CompRepository repository() { return rep; } 16 public ID getIdent() { return id; } 17 public CompContainer parent() { return par; } 18 public FullID fullName() { 19 FullID ret = null; 20 if (par==null) { 21 ret = new FullID(true); 22 ret.name = id.name; 23 ret.version = id.version; 24 } else { 25 FullID p = ((CompContained)par).fullName(); 26 ret = new FullID(p); 27 ret.sn.addScope(new String (p.name)); 28 ret.name = id.name; 29 ret.version = id.version; 30 } 31 return ret; 32 } 33 34 public boolean isContainer() {return false;} 35 } 36 | Popular Tags |