Interface Qualifier
-
- All Known Implementing Classes:
CurrencyQualifierProvider.CurrencyQualifier,LanguageQualifierProvider.LanguageQualifier
public interface QualifierRepresents a qualifier. A qualifier can be: a language, a currency, a combination of them, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U> UgetValueForType(java.lang.Class<U> type)Extracts a value from thisQualifierobject.java.lang.StringtoFieldQualifier()Returns a string representation of thisQualifierobject.
-
-
-
Method Detail
-
getValueForType
<U> U getValueForType(java.lang.Class<U> type)
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:
java.lang.IllegalArgumentException- if the type is not supported
-
toFieldQualifier
java.lang.String toFieldQualifier()
Returns a string representation of thisQualifierobject.- Returns:
- a
Stringrepresentation of this object
-
-