public enum JhoveMessages extends Enum<JhoveMessages>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static JhoveMessage |
DEFAULT_MESSAGE |
static String |
EMPTY_MESSAGE |
static String |
NO_ID |
| Modifier and Type | Method and Description |
|---|---|
static JhoveMessageFactory |
getInstance(String bundleName)
Get a JhoveMessageFactory instance with the requested property based
bundle name and the default user locale
|
static JhoveMessageFactory |
getInstance(String bundleName,
Locale locale)
Get a JhoveMessageFactory instance with the requested property based
bundle name and a specific locale
|
static JhoveMessage |
getMessageInstance(String message)
Create a new message instance with a DEFAULT_ID
|
static JhoveMessage |
getMessageInstance(String id,
String message)
Create a JhoveMessage instance with the give id and message value
|
static JhoveMessage |
getMessageInstance(String id,
String message,
String subMessage)
Create a new JhoveMessage instance with the given id, message and
sub-message
|
static JhoveMessages |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JhoveMessages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JhoveMessages INSTANCE
public static final String NO_ID
public static final String EMPTY_MESSAGE
public static final JhoveMessage DEFAULT_MESSAGE
public static JhoveMessages[] values()
for (JhoveMessages c : JhoveMessages.values()) System.out.println(c);
public static JhoveMessages valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static JhoveMessage getMessageInstance(String message) throws IllegalArgumentException
message - the message of the new messageIllegalArgumentException - if the id or message is null or emptypublic static JhoveMessage getMessageInstance(String id, String message) throws IllegalArgumentException
id - the id of the new messagemessage - the message of the new messageIllegalArgumentException - if the id or message is null or emptypublic static JhoveMessage getMessageInstance(String id, String message, String subMessage) throws IllegalArgumentException
id - the id of the new messagemessage - the message of the new messagesubMessage - the sub-message of the new messageIllegalArgumentException - if the id or message is null or emptypublic static JhoveMessageFactory getInstance(String bundleName) throws IllegalArgumentException
bundleName - the fully qualified resource path for the message bundle
property fileIllegalArgumentException - if the bundle name is empty or the message bundle can't be
locatedpublic static JhoveMessageFactory getInstance(String bundleName, Locale locale) throws IllegalArgumentException
bundleName - the fully qualified resource path for the message bundle
property filelocale - the locale for the message bundleIllegalArgumentException - if the bundle name is empty or the message bundle can't be
locatedCopyright © 2008–2020 The Open Preservation Foundation. All rights reserved.