1 19 package org.netbeans.modules.j2ee.weblogic9; 20 21 import java.util.Vector ; 22 import javax.enterprise.deploy.spi.Target ; 23 import javax.enterprise.deploy.spi.TargetModuleID ; 24 28 class WLTargetModuleID implements TargetModuleID { 29 private Target target; 30 private String jar_name; 31 private String context_url; 32 33 Vector childs = new Vector (); 34 TargetModuleID parent = null; 35 WLTargetModuleID(Target target ){ 36 this( target, ""); 37 38 39 } 40 WLTargetModuleID(Target target, String jar_name ){ 41 this.target = target; 42 this.setJARName(jar_name); 43 44 } 45 public void setContextURL( String context_url ){ 46 this.context_url = context_url; 47 } 48 public void setJARName( String jar_name ){ 49 this.jar_name = jar_name; 50 } 51 52 public void setParent( WLTargetModuleID parent){ 53 this.parent = parent; 54 55 } 56 57 public void addChild( WLTargetModuleID child) { 58 childs.add( child ); 59 child.setParent( this ); 60 } 61 62 public TargetModuleID [] getChildTargetModuleID(){ 63 return (TargetModuleID [])childs.toArray(new TargetModuleID [childs.size()]); 64 } 65 public java.lang.String getModuleID(){ 67 return jar_name ; 68 } 69 public TargetModuleID getParentTargetModuleID(){ 71 72 return parent; 73 } 74 public Target getTarget(){ 76 return target; 77 } 78 public java.lang.String getWebURL(){ 80 return context_url; } 82 public java.lang.String toString() { 84 return getModuleID() + hashCode(); 85 } 86 } | Popular Tags |