public String stringfor(Locator loc) { return "" + loc.key() + "=" + loc.element(); }
/** * @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(); }