1 26 27 package org.objectweb.ccm.IDL3; 28 29 37 38 public class NativeDeclImpl 39 extends DeclarationImpl 40 implements TypeRef, NativeDecl 41 { 42 48 51 private org.omg.CORBA.NativeDef native_def_; 52 53 59 64 protected 65 NativeDeclImpl(Repository rep, ScopeImpl parent) 66 { 67 super(rep, parent); 69 70 native_def_ = null; 72 the_declaration_kind_ = DeclarationKind._dk_native; 73 } 74 75 81 86 protected void 87 load(org.omg.CORBA.Contained contained) 88 { 89 native_def_ = org.omg.CORBA.NativeDefHelper.narrow(contained); 90 super.load(contained); 91 } 92 93 98 protected void 99 loadAsMapping(org.omg.CORBA.Contained contained) 100 { 101 native_def_ = org.omg.CORBA.NativeDefHelper.narrow(contained); 102 super.loadAsMapping(contained); 103 } 104 105 111 114 public void 115 create() 116 { 117 native_def_ = the_parent_.getContainer().create_native(getId(), getName(), getVersion()); 119 120 super.create(); 121 } 122 123 129 134 public org.omg.CORBA.IDLType 135 getIDLType() 136 { 137 return native_def_; 138 } 139 140 143 public int 144 getTypeKind() 145 { 146 return TypeKind._tk_native; 147 } 148 149 155 160 protected org.omg.CORBA.Contained 161 getContained() 162 { 163 return native_def_; 164 } 165 } 166 | Popular Tags |