/** * @param s1 The first parameter of a string. A null is valid for s1. * @param s2 The first parameter of a string. A null is valid for s2. */ static public String getText(Locale l, String key, String s1, String s2) { return getText(l, key, s1, s2, null); }
/** * @param s1 The first parameter of a string. A null is valid for s1. * @param s2 The first parameter of a string. A null is valid for s2. * @param s3 The first parameter of a string. A null is valid for s3. */ static public String getText(Locale l, String key) { return getText(l, key, null, null, null); }
/** * @param s1 The first parameter of a string. A null is valid for s1. */ static public String getText(Locale l, String key, String s1) { return getText(l, key, s1, null, null); }
/** * @param s1 The first parameter of a string. A null is valid for s1. * @param s2 The first parameter of a string. A null is valid for s2. */ static public String getText(String key, String s1, String s2) { return getText(Locale.getDefault(), key, s1, s2); }
/** * @param s1 The first parameter of a string. A null is valid for s1. */ static public String getText(String key, String s1) { return getText(Locale.getDefault(), key, s1, null); }
/** * @param s1 The first parameter of a string. A null is valid for s1. * @param s2 The first parameter of a string. A null is valid for s2. * @param s3 The first parameter of a string. A null is valid for s3. */ static public String getText(String key, String s1, String s2, String s3) { return getText(Locale.getDefault(), key, s1, s2, s3); }
static public String getText(String key) { return getText(Locale.getDefault(), key, null, null); }
private void parsingWarning(String key, String s1, String s2) { String msg = HelpUtilities.getText(key, s1, s2); reportMessage(msg, true); // warning only }
private void parsingError(String key) { String s = HelpUtilities.getText(key); reportMessage(s, false); // tree will be wrong }
/** * Process a DOCTYPE */ public void processDOCTYPE(String root, String publicID, String systemID) { if (publicID == null || (publicID.compareTo(publicIDString) != 0 && publicID.compareTo(publicIDString_V2) != 0)) { reportMessage(HelpUtilities.getText("index.invalidIndexFormat", publicID), false); } }
/** * @throws Error if key is invalid. */ private void parsingError(String key, String s) { String msg = HelpUtilities.getText(key, s); reportMessage(msg, false); // tree will be wrong }
/** * @throws Error if key is invalid. */ private void parsingError(String key, String s1, String s2) { String msg = HelpUtilities.getText(key, s1, s2); reportMessage(msg, false); // tree will be wrong }
/** * Handy error message methods. */ private void parsingError(String key) { String s = HelpUtilities.getText(key); factory.reportMessage(s, false); // tree will be wrong }
/** * Process a DOCTYPE */ public void processDOCTYPE(String root, String publicID, String systemID) { if (publicID == null || !publicID.equals(publicIDString)) { reportMessage(HelpUtilities.getText("favorites.invalidFavoritesFormat", publicID), false); } }
private void wrongLocale(Locale found, Locale l1, Locale l2) { String msg = HelpUtilities.getText("helpset.wrongLocale", found.toString(), l1.toString(), l2.toString()); factory.reportMessage(msg, true); // will continue } } // End of HelpSetParser
/** * Processes a DOCTYPE. */ public void processDOCTYPE(String root, String publicID, String systemID) { if (publicID == null || (publicID.compareTo(publicIDString) != 0 && publicID.compareTo(publicIDString_V2) != 0)) { reportMessage(HelpUtilities.getText("toc.wrongPublicID", publicID), false); } }
private void parsingError(String key) { String s = HelpUtilities.getText(key); reportMessage(s, false); // tree will be wrong }
private void parsingError(String key, String s) { String msg = HelpUtilities.getText(key, s); factory.reportMessage(msg, false); // tree will be wrong }
private void parsingError(String key, String s1, String s2) { String msg = HelpUtilities.getText(key, s1, s2); factory.reportMessage(msg, false); // tree will be wrong }
private void parsingError(String key, String s) { String msg = HelpUtilities.getText(key, s); reportMessage(msg, false); // tree will be wrong }