Package org.apache.abdera.i18n.rfc4646
Enum Subtag.Type
- java.lang.Object
-
- java.lang.Enum<Subtag.Type>
-
- org.apache.abdera.i18n.rfc4646.Subtag.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Subtag.Type>
- Enclosing class:
- Subtag
public static enum Subtag.Type extends java.lang.Enum<Subtag.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTENSION
Extension subtag *EXTLANG
Extended Language subtag *GRANDFATHERED
Grandfathered subtag *PRIMARY
Primary language subtag *PRIVATEUSE
Primary-use subtag *REGION
Region subtag *SCRIPT
Script subtag *SIMPLE
Simple subtag (ranges) *SINGLETON
Singleton subtag *VARIANT
Variant subtag *WILDCARD
Wildcard subtag ("*") *
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Subtag.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Subtag.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIMARY
public static final Subtag.Type PRIMARY
Primary language subtag *
-
EXTLANG
public static final Subtag.Type EXTLANG
Extended Language subtag *
-
SCRIPT
public static final Subtag.Type SCRIPT
Script subtag *
-
REGION
public static final Subtag.Type REGION
Region subtag *
-
VARIANT
public static final Subtag.Type VARIANT
Variant subtag *
-
SINGLETON
public static final Subtag.Type SINGLETON
Singleton subtag *
-
EXTENSION
public static final Subtag.Type EXTENSION
Extension subtag *
-
PRIVATEUSE
public static final Subtag.Type PRIVATEUSE
Primary-use subtag *
-
GRANDFATHERED
public static final Subtag.Type GRANDFATHERED
Grandfathered subtag *
-
WILDCARD
public static final Subtag.Type WILDCARD
Wildcard subtag ("*") *
-
SIMPLE
public static final Subtag.Type SIMPLE
Simple subtag (ranges) *
-
-
Method Detail
-
values
public static Subtag.Type[] 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 (Subtag.Type c : Subtag.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Subtag.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-