1 19 20 package org.netbeans.modules.j2ee.ejbcore.ui.logicalview.ejb.entity; 21 22 import java.util.Collection ; 23 import org.netbeans.modules.j2ee.dd.api.ejb.Entity; 24 import org.netbeans.modules.j2ee.ejbcore.api.methodcontroller.EntityMethodController; 25 import org.openide.filesystems.FileObject; 26 27 32 33 35 public class MethodChildren { 36 private final EntityMethodController controller; 38 private final boolean local; 39 private final FileObject ddFile; 40 private final Entity entity; 41 42 public MethodChildren(EntityMethodController smc, Entity model, Collection interfaces, boolean local, FileObject ddFile) { 43 controller = smc; 45 this.local = local; 46 this.ddFile = ddFile; 47 this.entity = model; 48 } 50 51 protected Collection getInterfaces() { 52 if (local) { 53 return controller.getLocalInterfaces(); 54 } else { 55 return controller.getRemoteInterfaces(); 56 } 57 } 58 59 119 } 120 | Popular Tags |