public enum Status extends Enum<Status>
| Enum Constant and Description |
|---|
ASTERISK_SEQUENCE
A CPE component may not contain a sequence of asterisk characters.
|
EMPTY
The CPE component is either empty or null.
|
INVALID
The CPE value is invalid.
|
INVALID_PART
The CPE has an invalid part defined.
|
NON_PRINTABLE
A CPE component must only contain printable characters.
|
SINGLE_QUOTED_HYPHEN
A CPE component cannot be a single quoted hyphen.
|
TOO_FEW_ELEMENTS
The CPE has too few components.
|
TOO_MANY_ELEMENTS
The CPE has too many components.
|
UNQUOTED_ASTERISK
Unquoted asterisk characters are not allowed except at the beginning or
end of a CPE component.
|
UNQUOTED_QUESTION_MARK
Unquoted question marks are not allowed except at the beginning or end of
a CPE component.
|
VALID
The CPE or CPE component is valid.
|
WHITESPACE
A CPE component must not contain whitespace.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Gets the status message.
|
boolean |
isValid()
Returns whether or not the status is considered valid.
|
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status VALID
public static final Status UNQUOTED_QUESTION_MARK
public static final Status UNQUOTED_ASTERISK
public static final Status ASTERISK_SEQUENCE
public static final Status NON_PRINTABLE
public static final Status WHITESPACE
public static final Status SINGLE_QUOTED_HYPHEN
public static final Status EMPTY
public static final Status TOO_MANY_ELEMENTS
public static final Status TOO_FEW_ELEMENTS
public static final Status INVALID_PART
public static final Status INVALID
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 boolean isValid()
true if the status is valid; otherwise
falsepublic String getMessage()
Copyright © 2018–2023. All rights reserved.