org.apache.abdera.i18n.rfc4646.enums
Enum Singleton
java.lang.Object
java.lang.Enum<Singleton>
org.apache.abdera.i18n.rfc4646.enums.Singleton
- All Implemented Interfaces:
- Serializable, Comparable<Singleton>
public enum Singleton
- extends Enum<Singleton>
Enum constants used to validate language tags
A
public static final Singleton A
B
public static final Singleton B
C
public static final Singleton C
D
public static final Singleton D
E
public static final Singleton E
F
public static final Singleton F
G
public static final Singleton G
H
public static final Singleton H
I
public static final Singleton I
J
public static final Singleton J
K
public static final Singleton K
L
public static final Singleton L
M
public static final Singleton M
N
public static final Singleton N
O
public static final Singleton O
P
public static final Singleton P
Q
public static final Singleton Q
R
public static final Singleton R
S
public static final Singleton S
T
public static final Singleton T
U
public static final Singleton U
V
public static final Singleton V
W
public static final Singleton W
X
public static final Singleton X
Y
public static final Singleton Y
Z
public static final Singleton Z
values
public static Singleton[] 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 (Singleton c : Singleton.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Singleton 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
getDescription
public String getDescription()
getRFC
public int getRFC()
newSubtag
public Subtag newSubtag()
getDeprecated
public String getDeprecated()
isDeprecated
public boolean isDeprecated()
getPreferredValue
public String getPreferredValue()
getPreferred
public Singleton getPreferred()
valueOf
public static Singleton valueOf(Subtag subtag)
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.