|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IDNA.Error>
com.ibm.icu.text.IDNA.Error
public static enum IDNA.Error
IDNA error bit set values. When a domain name or label fails a processing step or does not meet the validity criteria, then one or more of these error bits are set.
| Enum Constant Summary | |
|---|---|
BIDI
A label does not meet the IDNA BiDi requirements (for right-to-left characters). |
|
CONTEXTJ
A label does not meet the IDNA CONTEXTJ requirements. |
|
DISALLOWED
A label or domain name contains disallowed characters. |
|
DOMAIN_NAME_TOO_LONG
A domain name is longer than 255 bytes in its storage form. |
|
EMPTY_LABEL
A non-final domain name label (or the whole domain name) is empty. |
|
HYPHEN_3_4
A label contains hyphen-minus ('-') in the third and fourth positions. |
|
INVALID_ACE_LABEL
An ACE label does not contain a valid label string. |
|
LABEL_HAS_DOT
A label contains a dot=full stop. |
|
LABEL_TOO_LONG
A domain name label is longer than 63 bytes. |
|
LEADING_COMBINING_MARK
A label starts with a combining mark. |
|
LEADING_HYPHEN
A label starts with a hyphen-minus ('-'). |
|
PUNYCODE
A label starts with "xn--" but does not contain valid Punycode. |
|
TRAILING_HYPHEN
A label ends with a hyphen-minus ('-'). |
|
| Method Summary | |
|---|---|
static IDNA.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IDNA.Error[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IDNA.Error EMPTY_LABEL
public static final IDNA.Error LABEL_TOO_LONG
public static final IDNA.Error DOMAIN_NAME_TOO_LONG
public static final IDNA.Error LEADING_HYPHEN
public static final IDNA.Error TRAILING_HYPHEN
public static final IDNA.Error HYPHEN_3_4
public static final IDNA.Error LEADING_COMBINING_MARK
public static final IDNA.Error DISALLOWED
public static final IDNA.Error PUNYCODE
public static final IDNA.Error LABEL_HAS_DOT
public static final IDNA.Error INVALID_ACE_LABEL
public static final IDNA.Error BIDI
public static final IDNA.Error CONTEXTJ
| Method Detail |
|---|
public static IDNA.Error[] values()
for (IDNA.Error c : IDNA.Error.values()) System.out.println(c);
public static IDNA.Error valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||