public String toString() {
   String result = "<tuple ";
   result += " id=\"" + id + "\" >\n";
   if (statusTag != null) result += statusTag.toString();
   if (contactTag != null) result += contactTag.toString();
   if (noteTag != null) result += noteTag.toString();
   result += "</tuple>\n";
   return result;
 }
 public void characters(char buf[], int offset, int len) throws SAXException {
   String str = new String(buf, offset, len);
   if (str != null && !str.trim().equals("")) {
     if (element.compareToIgnoreCase("basic") == 0) {
       basicTag.setValue(str);
     }
     if (element.compareToIgnoreCase("contact") == 0) {
       contactTag.setContact(str);
     }
     if (element.compareToIgnoreCase("note") == 0) {
       noteTag.setNote(str);
     }
   }
 }