org.apache.abdera.i18n.rfc4646.enums
Enum Singleton

java.lang.Object
  extended by java.lang.Enum<Singleton>
      extended by 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


Enum Constant Summary
A
           
B
           
C
           
D
           
E
           
F
           
G
           
H
           
I
           
J
           
K
           
L
           
M
           
N
           
O
           
P
           
Q
           
R
           
S
           
T
           
U
           
V
           
W
           
X
           
Y
           
Z
           
 
Method Summary
 String getDeprecated()
           
 String getDescription()
           
 Singleton getPreferred()
           
 String getPreferredValue()
           
 int getRFC()
           
 boolean isDeprecated()
           
 Subtag newSubtag()
           
static Singleton valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Singleton valueOf(Subtag subtag)
           
static Singleton[] 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

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
Method Detail

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.