1 11 package org.eclipse.ant.internal.ui.views.elements; 12 13 14 public abstract class AntNode { 15 16 private AntNode parent= null; 17 private String name= null; 18 private String description= null; 19 20 23 private AntNode() { 24 } 25 26 31 public AntNode(String name) { 32 this(null, name); 33 } 34 35 41 public AntNode(AntNode parent, String name) { 42 this.parent= parent; 43 this.name= name; 44 } 45 46 51 public AntNode getParent() { 52 return parent; 53 } 54 55 60 public void setParent(AntNode parent) { 61 this.parent= parent; 62 } 63 64 72 public String getName() { 73 return name; 74 } 75 76 81 public void setName(String name) { 82 this.name= name; 83 } 84 85 public String toString() { 86 if (getName() != null) { 87 return getName(); 88 } 89 return super.toString(); 90 } 91 92 97 public void setDescription(String description) { 98 this.description= description; 99 } 100 101 109 public String getDescription() { 110 return description; 111 } 112 } 113 | Popular Tags |