Пример #1
0
        static internal String[] GetStringArrayHelper(UResourceBundle res_0)
        {
            try {
                int type = res_0.GetType();
                switch (type)
                {
                case IBM.ICU.Util.UResourceBundle.ARRAY:
                    return(res_0.GetStringArray());

                case IBM.ICU.Util.UResourceBundle.STRING:
                    return(new String[] { res_0.GetString() });

                default:
                    throw new UResourceTypeMismatchException(
                              "Only accept ARRAY and STRING types.");
                }
            } catch (UResourceTypeMismatchException e) {
                // #if defined(FOUNDATION10) || defined(J2SE13)
                // ## throw new DataModuleFormatError(e.getMessage());
                // #else
                throw new TestDataModule_Constants.DataModuleFormatError(e);
                // #endif
            }
        }