org.apache.abdera.i18n.rfc4646
Enum Subtag.Type

java.lang.Object
  extended by java.lang.Enum<Subtag.Type>
      extended by org.apache.abdera.i18n.rfc4646.Subtag.Type
All Implemented Interfaces:
Serializable, Comparable<Subtag.Type>
Enclosing class:
Subtag

public static enum Subtag.Type
extends Enum<Subtag.Type>


Enum Constant Summary
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
static Subtag.Type valueOf(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.
 
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

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(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


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.