1 28 29 package com.caucho.j2ee.deployclient; 30 31 import javax.enterprise.deploy.spi.Target ; 32 import javax.enterprise.deploy.spi.TargetModuleID ; 33 34 37 public class TargetModuleIDImpl implements TargetModuleID , java.io.Serializable { 38 private TargetImpl _target; 39 private String _moduleID; 40 41 private TargetModuleID _parent; 42 43 TargetModuleIDImpl() 44 { 45 } 46 47 public TargetModuleIDImpl(TargetImpl target, String moduleID) 48 { 49 _target = target; 50 _moduleID = moduleID; 51 } 52 53 56 public Target getTarget() 57 { 58 return _target; 59 } 60 61 64 public String getModuleID() 65 { 66 return _moduleID; 67 } 68 69 72 public String getWebURL() 73 { 74 throw new UnsupportedOperationException (); 75 } 76 77 80 public TargetModuleID getParentTargetModuleID() 81 { 82 return _parent; 83 } 84 85 88 public void setParentTargetModuleID(TargetModuleID parent) 89 { 90 _parent = parent; 91 } 92 93 96 public TargetModuleID []getChildTargetModuleID() 97 { 98 return new TargetModuleID [0]; 99 } 100 101 public boolean equals(Object o) 102 { 103 if (! (o instanceof TargetModuleIDImpl)) 104 return false; 105 106 TargetModuleIDImpl id = (TargetModuleIDImpl) o; 107 108 return (_target.equals(id.getTarget()) && 109 _moduleID.equals(id.getModuleID())); 110 } 111 112 public String toString() 113 { 114 return "TargetModuleIDImpl[" + getModuleID() + "," + getTarget() + "]"; 115 } 116 } 117 118 | Popular Tags |