001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2008-2009 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.gui.validate; 011 012/** 013 * Message provider. Extracted interface from <code>mondrian.gui.I18n</code>. 014 * 015 * @author mlowery 016 */ 017public interface Messages { 018 /** 019 * Returns the string with given key. 020 * 021 * @param stringId key 022 * @param defaultValue default if key does not exist 023 * @return message 024 */ 025 String getString( 026 String stringId, 027 String defaultValue); 028 029 /** 030 * Returns the string with given key with substitutions. 031 * 032 * @param stringId Key 033 * @param defaultValue default if key does not exist 034 * @param args arguments to substitute 035 * @return message 036 */ 037 String getFormattedString( 038 String stringId, 039 String defaultValue, 040 Object... args); 041} 042 043// End Messages.java