Java Code Examples for com.sun.org.apache.xalan.internal.utils.SecuritySupport#getResourceBundle()
The following examples show how to use
com.sun.org.apache.xalan.internal.utils.SecuritySupport#getResourceBundle() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XMLMessages.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 2
Source File: XMLMessages.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 3
Source File: Messages.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 4
Source File: XMLMessages.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 5
Source File: XSLMessages.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted warning string. */ public static String createWarning(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 6
Source File: XSLMessages.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted message string. */ public static String createMessage(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 7
Source File: Messages.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 8
Source File: XSLMessages.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted message string. */ public static String createMessage(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 9
Source File: XSLMessages.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted message string. */ public static String createMessage(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 10
Source File: XMLMessages.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 11
Source File: XSLMessages.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted message string. */ public static String createMessage(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 12
Source File: XSLMessages.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement arguments, * localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text in the message * created. * * @return The formatted warning string. */ public static String createWarning(String msgKey, Object args[]) //throws Exception { if (XSLTBundle == null) { XSLTBundle = SecuritySupport.getResourceBundle(XSLT_ERROR_RESOURCES); } if (XSLTBundle != null) { return createMsg(XSLTBundle, msgKey, args); } else { return "Could not load any resource bundles."; } }
Example 13
Source File: Messages.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 14
Source File: XMLMessages.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 15
Source File: Messages.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 16
Source File: Messages.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 17
Source File: XMLMessages.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 18
Source File: XMLMessages.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }
Example 19
Source File: Messages.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. * @xsl.usage internal */ public final String createMessage(String msgKey, Object args[]) { if (m_resourceBundle == null) m_resourceBundle = SecuritySupport.getResourceBundle(m_resourceBundleName); if (m_resourceBundle != null) { return createMsg(m_resourceBundle, msgKey, args); } else return "Could not load the resource bundles: "+ m_resourceBundleName; }
Example 20
Source File: XMLMessages.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Creates a message from the specified key and replacement * arguments, localized to the given locale. * * @param msgKey The key for the message text. * @param args The arguments to be used as replacement text * in the message created. * * @return The formatted message string. */ public static final String createXMLMessage(String msgKey, Object args[]) { if (XMLBundle == null) { XMLBundle = SecuritySupport.getResourceBundle(XML_ERROR_RESOURCES); } if (XMLBundle != null) { return createMsg(XMLBundle, msgKey, args); } else return "Could not load any resource bundles."; }