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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U> U
getValueForType(java.lang.Class<U> type)
Extracts a value from thisQualifier
object.
java.lang.String
toFieldQualifier()
Returns a string representation of thisQualifier
object.
-
-
-
Method Detail
-
getValueForType
<U> U getValueForType(java.lang.Class<U> type)
Extracts a value from thisQualifier
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:
java.lang.IllegalArgumentException
- if the type is not supported
-
toFieldQualifier
java.lang.String toFieldQualifier()
Returns a string representation of thisQualifier
object.- Returns:
- a
String
representation of this object
-
-