String publicId = locator.getPublicId(); String systemId = locator.getSystemId(); int lineNumber = locator.getLineNumber(); int columnNumber = locator.getColumnNumber(); StringBuffer buffer = new StringBuffer (); if (publicId != null) { buffer.append ("publicId="); buffer.append (publicId); } if (systemId != null) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("systemId="); buffer.append (systemId); } if (lineNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("lineNumber="); buffer.append (lineNumber); } if (columnNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("columnNumber="); buffer.append (columnNumber); } return buffer.toString(); }
	public String getLocationAsString() {	    if (locator == null)		return null;	    StringBuffer	retval = new StringBuffer ();	    if (locator.getPublicId () != null) {		retval.append ("public='");		retval.append (locator.getPublicId ());		retval.append ("' ");	    }	    if (locator.getSystemId () != null) {		retval.append ("uri='");		retval.append (locator.getSystemId ());		retval.append ("' ");	    }	    if (locator.getLineNumber () != -1) {		retval.append ("line=");		retval.append (locator.getLineNumber ());		retval.append (" ");	    }	    if (locator.getColumnNumber () != -1) {		retval.append ("column=");		retval.append (locator.getColumnNumber ());		//retval.append (" ");	    }	    return retval.toString ();	}