org.apache.abdera.i18n.rfc4646.enums
Enum Variant
java.lang.Object
java.lang.Enum<Variant>
org.apache.abdera.i18n.rfc4646.enums.Variant
- All Implemented Interfaces:
- Serializable, Comparable<Variant>
public enum Variant
- extends Enum<Variant>
Enum constants used to validate language tags
_1606NICT
public static final Variant _1606NICT
_1694ACAD
public static final Variant _1694ACAD
_1901
public static final Variant _1901
_1994
public static final Variant _1994
_1996
public static final Variant _1996
AREVELA
public static final Variant AREVELA
AREVMDA
public static final Variant AREVMDA
BAKU1926
public static final Variant BAKU1926
BISKE
public static final Variant BISKE
BOONT
public static final Variant BOONT
FONIPA
public static final Variant FONIPA
FONUPA
public static final Variant FONUPA
LIPAW
public static final Variant LIPAW
MONOTON
public static final Variant MONOTON
NEDIS
public static final Variant NEDIS
NJIVA
public static final Variant NJIVA
OSOJS
public static final Variant OSOJS
POLYTON
public static final Variant POLYTON
ROZAJ
public static final Variant ROZAJ
SCOTLAND
public static final Variant SCOTLAND
SCOUSE
public static final Variant SCOUSE
SOLBA
public static final Variant SOLBA
TARASK
public static final Variant TARASK
VALENCIA
public static final Variant VALENCIA
values
public static Variant[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Variant c : Variant.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Variant valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
isDeprecated
public boolean isDeprecated()
getDeprecated
public String getDeprecated()
getPreferredValue
public String getPreferredValue()
getPreferred
public Variant getPreferred()
getPrefix
public String getPrefix()
getPrefixes
public String[] getPrefixes()
getDescription
public String getDescription()
getDescriptions
public String[] getDescriptions()
newSubtag
public Subtag newSubtag()
valueOf
public static Variant valueOf(Subtag subtag)
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.