FileDocCategorySizeDatePackage
Messages.javaAPI DocApache Axis 1.46101Sat Apr 22 18:57:28 BST 2006org.apache.axis.i18n

Messages

public class Messages extends Object
see
org.apache.axis.i18n.Messages FUNCTIONAL TEMPLATE for Messages classes. Copy this template to your package. For subpackages of org.apache.axis.*, the internal constants are set appropriately. To adapt this scheme to an extension project (package prefix differs from org.apache.axis.*), edit the projectName attribute. The others shouldn't need to be changed unless this is being adapted to a non-AXIS related project..
author
Richard A. Sitze (rsitze@us.ibm.com)
author
Karl Moss (kmoss@macromedia.com)
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
private static final Class
thisClass
private static final String
projectName
private static final String
resourceName
private static final Locale
locale
private static final String
packageName
private static final ClassLoader
classLoader
private static final ResourceBundle
parent
private static final MessageBundle
messageBundle
NO NEED TO CHANGE ANYTHING BELOW
Constructors Summary
Methods Summary
public static java.lang.StringgetMessage(java.lang.String key)
Get a message from resource.properties from the package of the given object.

param
key The resource key
return
The formatted message


                               
        
         
    
        return messageBundle.getMessage(key);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String arg0)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
arg0 The argument to place in variable {0}
return
The formatted message

        return messageBundle.getMessage(key, arg0);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String arg0, java.lang.String arg1)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
arg0 The argument to place in variable {0}
param
arg1 The argument to place in variable {1}
return
The formatted message

        return messageBundle.getMessage(key, arg0, arg1);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
arg0 The argument to place in variable {0}
param
arg1 The argument to place in variable {1}
param
arg2 The argument to place in variable {2}
return
The formatted message

        return messageBundle.getMessage(key, arg0, arg1, arg2);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
arg0 The argument to place in variable {0}
param
arg1 The argument to place in variable {1}
param
arg2 The argument to place in variable {2}
param
arg3 The argument to place in variable {3}
return
The formatted message

        return messageBundle.getMessage(key, arg0, arg1, arg2, arg3);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
arg0 The argument to place in variable {0}
param
arg1 The argument to place in variable {1}
param
arg2 The argument to place in variable {2}
param
arg3 The argument to place in variable {3}
param
arg4 The argument to place in variable {4}
return
The formatted message

        return messageBundle.getMessage(key, arg0, arg1, arg2, arg3, arg4);
    
public static java.lang.StringgetMessage(java.lang.String key, java.lang.String[] args)
Get a message from resource.properties from the package of the given object.

param
key The resource key
param
args An array of objects to place in corresponding variables
return
The formatted message

        return messageBundle.getMessage(key, args);
    
public static MessageBundlegetMessageBundle()

        return messageBundle;
    
private static final java.lang.StringgetPackage(java.lang.String name)

        return name.substring(0, name.lastIndexOf('.")).intern();
    
public static java.util.ResourceBundlegetResourceBundle()

        return messageBundle.getResourceBundle();