Enum Subtag.Type

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

public static enum Subtag.Type extends Enum<Subtag.Type>
  • Enum Constant Details

    • 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 Details

    • values

      public static Subtag.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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