public enum ProcessingStatus extends java.lang.Enum<ProcessingStatus>
Enum Constant and Description |
---|
DELETED |
ERROR |
GLOBALLY_BLACKLISTED |
IGNORED |
PARTIALLY_BLACKLISTED |
SUCCESSFUL |
Modifier and Type | Method and Description |
---|---|
static ProcessingStatus |
get(int code)
Retrieve the ProcessingStatus corresponding to the specified ProcessingStatus's code
|
int |
getCode()
Retrieve an internal and unique integer for this ProcessingStatus, suitable for serialization
|
java.lang.String |
getText(java.lang.String lang)
Retrieve an I18Ned string describing this ProcessingStatus
|
boolean |
isBlacklisted()
Check if this status a blacklisting status (either globally or partially)
|
static ProcessingStatus |
mergeStatuses(java.util.EnumSet<ProcessingStatus> statuses)
Retrieve the worst status from the specified ones
|
static ProcessingStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProcessingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProcessingStatus IGNORED
public static final ProcessingStatus SUCCESSFUL
public static final ProcessingStatus DELETED
public static final ProcessingStatus ERROR
public static final ProcessingStatus PARTIALLY_BLACKLISTED
public static final ProcessingStatus GLOBALLY_BLACKLISTED
public static ProcessingStatus[] values()
for (ProcessingStatus c : ProcessingStatus.values()) System.out.println(c);
public static ProcessingStatus 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 static ProcessingStatus get(int code)
code
- the interger value as returned by getCode()
public final int getCode()
get(int)
public final java.lang.String getText(java.lang.String lang)
lang
- the ISO-639 language code in which to retrieve the ProcessingStatus descriptionpublic final boolean isBlacklisted()
public static ProcessingStatus mergeStatuses(java.util.EnumSet<ProcessingStatus> statuses)
statuses
- an set of ProcessingStatusCopyright © 2001-2010 Jalios SA. All Rights Reserved.