/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }