IDNA.Error


public static final enum IDNA.Error
extends Enum<IDNA.Error>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.IDNA.Error>
     ↳ android.icu.text.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.

Summary

Enum values

IDNA.Error  BIDI

A label does not meet the IDNA BiDi requirements (for right-to-left characters). 

IDNA.Error  CONTEXTJ

A label does not meet the IDNA CONTEXTJ requirements. 

IDNA.Error  CONTEXTO_DIGITS

A label does not meet the IDNA CONTEXTO requirements for digits. 

IDNA.Error  CONTEXTO_PUNCTUATION

A label does not meet the IDNA CONTEXTO requirements for punctuation characters. 

IDNA.Error  DISALLOWED

A label or domain name contains disallowed characters. 

IDNA.Error  DOMAIN_NAME_TOO_LONG

A domain name is longer than 255 bytes in its storage form. 

IDNA.Error  EMPTY_LABEL

A non-final domain name label (or the whole domain name) is empty. 

IDNA.Error  HYPHEN_3_4

A label contains hyphen-minus ('-') in the third and fourth positions. 

IDNA.Error  INVALID_ACE_LABEL

An ACE label does not contain a valid label string. 

IDNA.Error  LABEL_HAS_DOT

A label contains a dot=full stop. 

IDNA.Error  LABEL_TOO_LONG

A domain name label is longer than 63 bytes. 

IDNA.Error  LEADING_COMBINING_MARK

A label starts with a combining mark. 

IDNA.Error  LEADING_HYPHEN

A label starts with a hyphen-minus ('-'). 

IDNA.Error  PUNYCODE

A label starts with "xn--" but does not contain valid Punycode. 

IDNA.Error  TRAILING_HYPHEN

A label ends with a hyphen-minus ('-'). 

Public methods

static IDNA.Error valueOf(String name)
static final Error[] values()

Inherited methods

final Object clone()

Throws CloneNotSupportedException.

final int compareTo(IDNA.Error o)

Compares this enum with the specified object for order.

final boolean equals(Object other)

Returns true if the specified object is equal to this enum constant.

final void finalize()

enum classes cannot have finalize methods.

final Class<IDNA.Error> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type.

final int hashCode()

Returns a hash code for this enum constant.

final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration.

final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

String toString()

Returns the name of this enum constant, as contained in the declaration.

static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int compareTo(IDNA.Error o)

Compares this object with the specified object for order.

Enum values

BIDI

Added in API level 24
public static final IDNA.Error BIDI

A label does not meet the IDNA BiDi requirements (for right-to-left characters).

CONTEXTJ

Added in API level 24
public static final IDNA.Error CONTEXTJ

A label does not meet the IDNA CONTEXTJ requirements.

CONTEXTO_DIGITS

Added in API level 24
public static final IDNA.Error CONTEXTO_DIGITS

A label does not meet the IDNA CONTEXTO requirements for digits. Arabic-Indic Digits (U+066x) must not be mixed with Extended Arabic-Indic Digits (U+06Fx).

CONTEXTO_PUNCTUATION

Added in API level 24
public static final IDNA.Error CONTEXTO_PUNCTUATION

A label does not meet the IDNA CONTEXTO requirements for punctuation characters. Some punctuation characters "Would otherwise have been DISALLOWED" but are allowed in certain contexts. (RFC 5892)

DISALLOWED

Added in API level 24
public static final IDNA.Error DISALLOWED

A label or domain name contains disallowed characters.

DOMAIN_NAME_TOO_LONG

Added in API level 24
public static final IDNA.Error DOMAIN_NAME_TOO_LONG

A domain name is longer than 255 bytes in its storage form. (See STD13/RFC1034 3.1. Name space specifications and terminology.) This is only checked in ToASCII operations, and only if the output domain name is all-ASCII.

EMPTY_LABEL

Added in API level 24
public static final IDNA.Error EMPTY_LABEL

A non-final domain name label (or the whole domain name) is empty.

HYPHEN_3_4

Added in API level 24
public static final IDNA.Error HYPHEN_3_4

A label contains hyphen-minus ('-') in the third and fourth positions.

INVALID_ACE_LABEL

Added in API level 24
public static final IDNA.Error INVALID_ACE_LABEL

An ACE label does not contain a valid label string. The label was successfully ACE (Punycode) decoded but the resulting string had severe validation errors. For example, it might contain characters that are not allowed in ACE labels, or it might not be normalized.

LABEL_HAS_DOT

Added in API level 24
public static final IDNA.Error LABEL_HAS_DOT

A label contains a dot=full stop. This can occur in an input string for a single-label function.

LABEL_TOO_LONG

Added in API level 24
public static final IDNA.Error LABEL_TOO_LONG

A domain name label is longer than 63 bytes. (See STD13/RFC1034 3.1. Name space specifications and terminology.) This is only checked in ToASCII operations, and only if the output label is all-ASCII.

LEADING_COMBINING_MARK

Added in API level 24
public static final IDNA.Error LEADING_COMBINING_MARK

A label starts with a combining mark.

LEADING_HYPHEN

Added in API level 24
public static final IDNA.Error LEADING_HYPHEN

A label starts with a hyphen-minus ('-').

PUNYCODE

Added in API level 24
public static final IDNA.Error PUNYCODE

A label starts with "xn--" but does not contain valid Punycode. That is, an xn-- label failed Punycode decoding.

TRAILING_HYPHEN

Added in API level 24
public static final IDNA.Error TRAILING_HYPHEN

A label ends with a hyphen-minus ('-').

Public methods

valueOf

public static IDNA.Error valueOf (String name)

Parameters
name String

Returns
IDNA.Error

values

public static final Error[] values ()

Returns
Error[]