1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.DeclarationKind; 31 32 33 import org.omg.CORBA.ComponentIR.FinderDef; 34 import org.omg.CORBA.ComponentIR.FinderDefHelper; 35 36 53 54 public class FinderDeclImpl 55 extends HomeOperationBaseImpl 56 implements org.objectweb.openccm.ast.api.FinderDecl 57 { 58 64 65 private FinderDef finder_def_; 66 67 73 79 protected 80 FinderDeclImpl(Repository rep, ScopeImpl parent) 81 { 82 super(rep, parent); 84 85 finder_def_ = null; 87 } 88 89 95 101 106 protected void 107 load(org.omg.CORBA.Contained contained) 108 { 109 finder_def_ = FinderDefHelper.narrow(contained); 110 super.load(contained); 111 } 112 113 118 protected org.omg.CORBA.Contained 119 getContained() 120 { 121 return finder_def_; 122 } 123 124 130 136 142 145 public void 146 create() 147 { 148 finder_def_ = the_parent_.getHomeDef(). 149 create_finder(getId(), getName(), getVersion(), 150 parameters_.getParameterDescriptionSeq(), 151 exceptions_.getExceptionDefSeq()); 152 } 153 154 159 public long 160 getDeclKind() 161 { 162 return DeclarationKind.dk_finder; 163 } 164 165 171 177 183 189 195 } 196 | Popular Tags |