Map<String, String> typeToLocation = new HashMap<String, String>(); for(String refID : referenceIds) { Location loc = getLocationByReferenceId(refID); Info info = getInfoByReferenceId(refID); typeToLocation.put(info.getType(), loc.getLocation()); }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
Map<String, String> referenceIdToLocation = new HashMap<String, String>(); for(Location loc : locationList) { referenceIdToLocation.put(loc.getReferenceId(), loc.getLocation()); } Map<String, String> typeToLocation = new HashMap<String, String>(); for(Info info : infoList) { typeToLocation.put(info.getType(), referenceIdToLocation.get(info.getReferenceId())); }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
public String getLocation() { return getLocation(_loc.get("location-format").getMessage()); }
public String getLocation() { return getLocation(_loc.get("location-format").getMessage()); }
public String getLocation() { return getLocation(_loc.get("location-format").getMessage()); }
public String getLocation() { return getLocation(_loc.get("location-format").getMessage()); }
/** * Returns a SAXException with the source file name and the given error * message. */ protected SAXException getException(Message msg, Throwable cause) { if (cause != null && _log != null && _log.isTraceEnabled()) _log.trace(_loc.get("sax-exception", getSourceName(), _location.getLocation()), cause); SAXException e = new SAXException(getSourceName() + currentLocation() + ": " + msg + " [" + cause + "]"); e.initCause(cause); return e; }
/** * Returns a SAXException with the source file name and the given error * message. */ protected SAXException getException(Message msg, Throwable cause) { if (cause != null && _log != null && _log.isTraceEnabled()) _log.trace(_loc.get("sax-exception", getSourceName(), _location.getLocation()), cause); SAXException e = new SAXException(getSourceName() + currentLocation() + ": " + msg + " [" + cause + "]"); e.initCause(cause); return e; }
/** * Returns a SAXException with the source file name and the given error * message. */ protected SAXException getException(Message msg, Throwable cause) { if (cause != null && _log != null && _log.isTraceEnabled()) _log.trace(_loc.get("sax-exception", getSourceName(), _location.getLocation()), cause); SAXException e = new SAXException(getSourceName() + currentLocation() + ": " + msg + " [" + cause + "]"); e.initCause(cause); return e; }
/** * Returns a SAXException with the source file name and the given error * message. */ protected SAXException getException(Message msg, Throwable cause) { if (cause != null && _log != null && _log.isTraceEnabled()) _log.trace(_loc.get("sax-exception", getSourceName(), _location.getLocation()), cause); SAXException e = new SAXException(getSourceName() + currentLocation() + ": " + msg + " [" + cause + "]"); e.initCause(cause); return e; } }