Package ariba.util.core

Examples of ariba.util.core.ResourceService


     *
     * @return a newly constructed localized String
     */
    public static String makeParseExceptionMessage (String errorKey)
    {
        ResourceService rs = ResourceService.getService();
        return rs.getLocalizedString(UtilStringTable, errorKey);
    }
View Full Code Here


     *
     * @return a newly constructed localized String
     */
    public static String makeParseExceptionMessage (String errorKey, String argument)
    {
        ResourceService rs = ResourceService.getService();
        return Fmt.Sil(rs.getLocale(), UtilStringTable, errorKey, argument);
    }
View Full Code Here

     */
    public static ParseException makeParseException (String errorKey,
                                                     String argument,
                                                     int offset)
    {
        ResourceService rs = ResourceService.getService();
        return makeParseException(errorKey, argument, offset, rs.getLocale());
    }
View Full Code Here

    protected Map getLocalizedString (String stringTableName,
                                    String componentName,
                                    Locale locale)
    {
        ResourceService resourceService = ResourceService.getService();
        // restrict the locale to what we can use
        locale = resourceService.getRestrictedLocale(locale);

        Map componentTable = null;
        Map stringTable = resourceService.stringTable(stringTableName, locale, this);
        if (stringTable == null) {
                // "Null string table returned in Resource Service"
            Log.util.error(2962, stringTable);
                // prevent the same error from happening
            resourceService.cacheStringTable(stringTableName,
                                             locale,
                                             MapUtil.map(),
                                             this);
        }
        else {
View Full Code Here

        // Note: must init *after* line above, because super will call our resourceUrl()
        super.init();

        // Todo!  Why were we calling "couldBeNull" -- we'll blow up downstream it this isn't initialized...
        ResourceService resourceService = ResourceService.getService(); // ResourceService.serviceCouldBeNull();
        if (resourceService != null) {
            resourceService.registerStringProcessor(_localizer);
        }
        LocalizedJavaString.registerLocalizer(_localizer);
    }
View Full Code Here

    {
        // Note: must init *after* line above, because super will call our resourceUrl()
        super.init();

        // Todo!  Why were we calling "couldBeNull" -- we'll blow up downstream it this isn't initialized...
        ResourceService resourceService = ResourceService.getService(); // ResourceService.serviceCouldBeNull();
        if (resourceService != null) {
            resourceService.registerStringProcessor(_localizer);
        }
        LocalizedJavaString.registerLocalizer(_localizer);
    }
View Full Code Here

        @aribaapi documented
    */
    public static String dualStringValue (Object money, Object alternate)
    {
            // Get the dual money display format
        ResourceService rservice = ResourceService.getService();
        String comboPatternKey = rservice.getLocalizedFormat(
            StringTable,
            MoneyComboPatternKey,
            rservice.getLocale());

        String converted = stringValueInCurrency(money, alternate);
        String amt = getStringValue(money);

        return Fmt.Si(comboPatternKey, amt, converted);
View Full Code Here

TOP

Related Classes of ariba.util.core.ResourceService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.