1 11 package org.eclipse.ant.core; 12 13 14 19 public class TargetInfo { 20 21 private String name = null; 22 private String description = null; 23 private ProjectInfo project = null; 24 private String [] dependencies = null; 25 private boolean isDefault = false; 26 27 37 38 TargetInfo(ProjectInfo project, String name, String description, String [] dependencies, boolean isDefault) { 39 this.name = name == null ? "" : name; this.description = description; 41 this.project = project; 42 this.dependencies = dependencies; 43 this.isDefault = isDefault; 44 } 45 46 51 public String getName() { 52 return name; 53 } 54 55 61 public String getDescription() { 62 return description; 63 } 64 65 70 public ProjectInfo getProject() { 71 return project; 72 } 73 74 79 public String [] getDependencies() { 80 return dependencies; 81 } 82 83 88 public boolean isDefault() { 89 return isDefault; 90 } 91 92 95 public boolean equals(Object obj) { 96 if (!(obj instanceof TargetInfo)) { 97 return false; 98 } 99 TargetInfo other= (TargetInfo)obj; 100 return getName().equals(other.getName()); 101 } 102 103 106 public int hashCode() { 107 return getName().hashCode(); 108 } 109 110 113 public String toString() { 114 return getName(); 115 } 116 } 117 | Popular Tags |