src/share/classes/com/sun/tools/javac/api/Messages.java

Mon, 09 Mar 2009 13:29:06 -0700

author
xdono
date
Mon, 09 Mar 2009 13:29:06 -0700
changeset 229
03bcd66bd8e7
parent 221
6ada6122dd4f
child 333
7c2d6da61646
permissions
-rw-r--r--

6814575: Update copyright year
Summary: Update copyright for files that have been modified in 2009, up to 03/09
Reviewed-by: katleman, tbell, ohair

mcimadamore@136 1 /*
xdono@229 2 * Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved.
mcimadamore@136 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@136 4 *
mcimadamore@136 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@136 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@136 7 * published by the Free Software Foundation. Sun designates this
mcimadamore@136 8 * particular file as subject to the "Classpath" exception as provided
mcimadamore@136 9 * by Sun in the LICENSE file that accompanied this code.
mcimadamore@136 10 *
mcimadamore@136 11 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@136 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@136 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@136 14 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@136 15 * accompanied this code).
mcimadamore@136 16 *
mcimadamore@136 17 * You should have received a copy of the GNU General Public License version
mcimadamore@136 18 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@136 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@136 20 *
mcimadamore@136 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
mcimadamore@136 22 * CA 95054 USA or visit www.sun.com if you need additional information or
mcimadamore@136 23 * have any questions.
mcimadamore@136 24 */
mcimadamore@136 25
mcimadamore@136 26 package com.sun.tools.javac.api;
mcimadamore@136 27
mcimadamore@136 28 import java.util.Locale;
mcimadamore@136 29 import java.util.MissingResourceException;
mcimadamore@136 30
mcimadamore@136 31 /**
mcimadamore@136 32 * This interface defines the minimum requirements in order to provide support
mcimadamore@136 33 * for localized formatted strings.
mcimadamore@136 34 *
mcimadamore@136 35 * @author Maurizio Cimadamore
mcimadamore@136 36 */
mcimadamore@136 37 public interface Messages {
mcimadamore@136 38
mcimadamore@136 39 /**
mcimadamore@136 40 * Add a new resource bundle to the list that is searched for localized messages.
mcimadamore@136 41 * @param bundleName the name to identify the resource bundle of localized messages.
mcimadamore@136 42 * @throws MissingResourceException if the given resource is not found
mcimadamore@136 43 */
mcimadamore@136 44 void add(String bundleName) throws MissingResourceException;
mcimadamore@136 45
mcimadamore@136 46 /**
mcimadamore@221 47 * Get a localized formatted string.
mcimadamore@136 48 * @param l locale in which the text is to be localized
mcimadamore@136 49 * @param key locale-independent message key
mcimadamore@136 50 * @param args misc message arguments
mcimadamore@136 51 * @return a localized formatted string
mcimadamore@136 52 */
mcimadamore@136 53 String getLocalizedString(Locale l, String key, Object... args);
mcimadamore@136 54 }

mercurial