1 23 package com.sun.enterprise.admin.util; 24 25 import java.util.ResourceBundle ; 26 import java.util.Locale ; 27 import java.text.MessageFormat ; 28 29 30 40 41 public class CLILocalStringsManager extends LocalStringsManager 42 { 43 static final String CLI_BASE_PACKAGE = "com.sun.enterprise.tools.cli"; 44 static final String DEFAULT_PROPERTY_FILE_NAME = "bundle"; 45 46 47 public CLILocalStringsManager() 48 { 49 super(CLI_BASE_PACKAGE, DEFAULT_PROPERTY_FILE_NAME); 50 setFixedResourceBundle(CLI_BASE_PACKAGE); 51 } 52 53 54 60 public String getString( String key, String defaultValue) 61 { 62 return super.getString(key, defaultValue); 63 } 64 65 72 public String getString( String key, String defaultFormat, Object [] args) 73 { 74 return super.getString(key, defaultFormat, args); 75 } 76 77 84 public String getString( String key, String defaultFormat, Object arg1) 85 { 86 return getString(key, defaultFormat, (new Object []{arg1})); 87 } 88 89 97 public String getString( String key, String defaultFormat, Object arg1, Object arg2) 98 { 99 return getString(key, defaultFormat, (new Object []{arg1, arg2})); 100 } 101 102 111 public String getString( String key, String defaultFormat, Object arg1, Object arg2, Object arg3) 112 { 113 return getString(key, defaultFormat, (new Object []{arg1, arg2, arg3})); 114 } 115 } 116 117 | Popular Tags |