1 28 29 package com.caucho.j2ee.deployclient; 30 31 import javax.enterprise.deploy.spi.Target ; 32 33 36 public class TargetImpl 37 implements Target , Comparable <TargetImpl>, java.io.Serializable 38 { 39 private String _name; 40 private String _description; 41 42 45 public TargetImpl() 46 { 47 } 48 49 52 public TargetImpl(String name, String description) 53 { 54 _name = name; 55 _description = description; 56 } 57 58 61 public String getName() 62 { 63 return _name; 64 } 65 66 69 public int compareTo(TargetImpl o) 70 { 71 if (o == null) 72 return 1; 73 74 if (_name == null) 75 return o._name == null ? 0 : 1; 76 77 if (o._name == null) 78 return 1; 79 80 return _name.compareTo(o._name); 81 } 82 83 86 public String getDescription() 87 { 88 return _description; 89 } 90 91 94 public String toString() 95 { 96 return "TargetImpl[" + _name + "]"; 97 } 98 99 } 100 101 | Popular Tags |