public class MessageUtil extends Object
Utility class for generating parameterized messages.
Constructor and Description |
---|
MessageUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0)
Returns a formatted message based on the provided template and
a single parameter.
|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0,
Object pArg1)
Returns a formatted message based on the provided template and
provided parameter.
|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2)
Returns a formatted message based on the provided template and
provided parameter.
|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3)
Returns a formatted message based on the provided template and
provided parameter.
|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4)
Returns a formatted message based on the provided template and
provided parameter.
|
static String |
getMessageWithArgs(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4,
Object pArg5)
Returns a formatted message based on the provided template and
provided parameter.
|
public MessageUtil()
public static String getMessageWithArgs(String pTemplate, Object pArg0)
Returns a formatted message based on the provided template and a single parameter.
pTemplate
- the base messagepArg0
- parameterpublic static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1)
Returns a formatted message based on the provided template and provided parameter.
pTemplate
- the base messagepArg0
- parameter 1pArg1
- parameter 2public static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2)
Returns a formatted message based on the provided template and provided parameter.
pTemplate
- the base messagepArg0
- parameter 1pArg1
- parameter 2pArg2
- parameter 3public static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3)
Returns a formatted message based on the provided template and provided parameter.
pTemplate
- the base messagepArg0
- parameter 1pArg1
- parameter 2pArg2
- parameter 3pArg3
- parameter 4public static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4)
Returns a formatted message based on the provided template and provided parameter.
pTemplate
- the base messagepArg0
- parameter 1pArg1
- parameter 2pArg2
- parameter 3pArg3
- parameter 4pArg4
- parameter 5public static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5)
Returns a formatted message based on the provided template and provided parameter.
pTemplate
- the base messagepArg0
- parameter 1pArg1
- parameter 2pArg2
- parameter 3pArg3
- parameter 4pArg4
- parameter 5pArg5
- parameter 6Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.