Example #1
0
 public String toString(int indentCount) {
   String indent = "";
   for (int i = 0; i < indentCount; i++) {
     indent += ". ";
   }
   String str = indent + "TreeLeafDO:";
   ObjectId oid = getOId();
   String id = "virgin";
   if (null != oid) id = oid.toString();
   str += " OID=" + id;
   if (null != data)
     str =
         str
             + "\n"
             + indent
             + "LeafNumber="
             + data.LeafNumber
             + "\n"
             + indent
             + "Profile="
             + (null == data.Profile ? null : data.Profile.toString(indentCount + 1))
             + "\n"
             + indent
             + "Mandatory="
             + data.Mandatory;
   return str + "\n" + indent + "SUPER=" + super.toString(indentCount);
   // return str;
 }
 public String toString(int indentCount) {
   String indent = "";
   for (int i = 0; i < indentCount; i++) {
     indent += ". ";
   }
   String str = indent + "PersonalProfileDO:";
   ObjectId oid = getOId();
   String id = "virgin";
   if (null != oid) id = oid.toString();
   str += " OID=" + id;
   if (null != data)
     str =
         str
             + "\n"
             + indent
             + "MinAge="
             + data.MinAge
             + "\n"
             + indent
             + "MaxAge="
             + data.MaxAge
             + "\n"
             + indent
             + "Nationality="
             + (null == data.Nationality ? null : data.Nationality.toString(indentCount + 1))
             + "\n"
             + indent
             + "Sex="
             + data.Sex;
   return str + "\n" + indent + "SUPER=" + super.toString(indentCount);
   // return str;
 }