Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object... args)
Gets a message.
|
java.lang.String |
getParseMessage(int code,
java.lang.Object... args)
Gets a parser warning message.
|
java.lang.String |
getValidationWarning(int code,
java.lang.Object... args)
Gets a validation warning message.
|
static Messages |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Messages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Messages INSTANCE
public static Messages[] values()
for (Messages c : Messages.values()) System.out.println(c);
public static Messages valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValidationWarning(int code, java.lang.Object... args)
code
- the message codeargs
- the message argumentspublic java.lang.String getParseMessage(int code, java.lang.Object... args)
code
- the message codeargs
- the message argumentspublic java.lang.String getMessage(java.lang.String key, java.lang.Object... args)
key
- the message keyargs
- the message argumentsThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.