Interface Qualifier

All Known Implementing Classes:
CurrencyQualifierProvider.CurrencyQualifier, LanguageQualifierProvider.LanguageQualifier

public interface Qualifier
Represents a qualifier. A qualifier can be: a language, a currency, a combination of them, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    <U> U
    Extracts a value from this Qualifier object.
    Returns a string representation of this Qualifier object.
  • Method Details

    • getValueForType

      <U> U getValueForType(Class<U> type)
      Extracts a value from this Qualifier object. The type should be one of the supported types of the corresponding provider (see QualifierProvider.getSupportedTypes()).
      Parameters:
      type - - the type of the value to extract
      Returns:
      the extracted value
      Throws:
      IllegalArgumentException - if the type is not supported
    • toFieldQualifier

      String toFieldQualifier()
      Returns a string representation of this Qualifier object.
      Returns:
      a String representation of this object