Ejemplo n.º 1
0
 public String stringfor(Locator loc) {
   return "" + loc.key() + "=" + loc.element();
 }
Ejemplo n.º 2
0
 /**
  * @param loc Locator for which string representation is desired
  * @return verbose string representation of <code>loc</code>
  */
 public static String stringfor(Locator loc) {
   if (loc == null) return "null locator";
   else return "Locator with key " + loc.key() + " = " + loc.element();
 }