1 package org.tigris.scarab.util.xmlissues; 2 3 48 49 public class Dependency implements java.io.Serializable 50 { 51 private String id = null; 52 private String type = null; 53 private String child = null; 54 private String parent = null; 55 private boolean deleted = false; 56 57 public Dependency() 58 { 59 } 60 61 public void setId(String id) 62 { 63 this.id = id; 64 } 65 66 public String getId() 67 { 68 return this.id; 69 } 70 71 public void setType(String type) 72 { 73 this.type = type; 74 } 75 76 public String getType() 77 { 78 return this.type; 79 } 80 81 public void setChild(String child) 82 { 83 this.child = child; 84 } 85 86 public String getChild() 87 { 88 return this.child; 89 } 90 91 public void setParent(String parent) 92 { 93 this.parent = parent; 94 } 95 96 public String getParent() 97 { 98 return this.parent; 99 } 100 101 public void setDeleted(boolean deleted) 102 { 103 this.deleted = deleted; 104 } 105 106 public boolean getDeleted() 107 { 108 return this.deleted; 109 } 110 111 public boolean equals(Dependency dependency) 112 { 113 return (id.equals(dependency.getId()) && 114 child.equals(dependency.getChild()) && 115 parent.equals(dependency.getParent()) && 116 type.equals(dependency.getType())); 117 } 118 119 public int hashCode() 120 { 121 return id == null ? 0 : id.hashCode(); 122 } 123 124 public String toString() 125 { 126 return ("Id: " + id + " Type: " + type + " Parent: " + parent + " Child: " + child); 127 } 128 } 129 | Popular Tags |