mcimadamore@136: /* ohair@554: * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. mcimadamore@136: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@136: * mcimadamore@136: * This code is free software; you can redistribute it and/or modify it mcimadamore@136: * under the terms of the GNU General Public License version 2 only, as ohair@554: * published by the Free Software Foundation. Oracle designates this mcimadamore@136: * particular file as subject to the "Classpath" exception as provided ohair@554: * by Oracle in the LICENSE file that accompanied this code. mcimadamore@136: * mcimadamore@136: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@136: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@136: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@136: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@136: * accompanied this code). mcimadamore@136: * mcimadamore@136: * You should have received a copy of the GNU General Public License version mcimadamore@136: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@136: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@136: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. mcimadamore@136: */ mcimadamore@136: mcimadamore@136: package com.sun.tools.javac.api; mcimadamore@136: mcimadamore@136: import java.util.Locale; mcimadamore@136: import java.util.MissingResourceException; mcimadamore@136: mcimadamore@136: /** mcimadamore@136: * This interface defines the minimum requirements in order to provide support mcimadamore@136: * for localized formatted strings. mcimadamore@136: * jjg@581: *

This is NOT part of any supported API. jjg@333: * If you write code that depends on this, you do so at your own risk. jjg@333: * This code and its internal interfaces are subject to change or jjg@333: * deletion without notice. jjg@333: * mcimadamore@136: * @author Maurizio Cimadamore mcimadamore@136: */ mcimadamore@136: public interface Messages { mcimadamore@136: mcimadamore@136: /** mcimadamore@136: * Add a new resource bundle to the list that is searched for localized messages. mcimadamore@136: * @param bundleName the name to identify the resource bundle of localized messages. mcimadamore@136: * @throws MissingResourceException if the given resource is not found mcimadamore@136: */ mcimadamore@136: void add(String bundleName) throws MissingResourceException; mcimadamore@136: mcimadamore@136: /** mcimadamore@221: * Get a localized formatted string. mcimadamore@136: * @param l locale in which the text is to be localized mcimadamore@136: * @param key locale-independent message key mcimadamore@136: * @param args misc message arguments mcimadamore@136: * @return a localized formatted string mcimadamore@136: */ mcimadamore@136: String getLocalizedString(Locale l, String key, Object... args); mcimadamore@136: }