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 TypeMethodDescription<U> UgetValueForType(Class<U> type) Extracts a value from thisQualifierobject.Returns a string representation of thisQualifierobject.
-
Method Details
-
getValueForType
Extracts a value from thisQualifierobject. The type should be one of the supported types of the corresponding provider (seeQualifierProvider.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 thisQualifierobject.- Returns:
- a
Stringrepresentation of this object
-