|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.portal.providers.context.PropertiesFilter
com.sun.portal.providers.context.LocalePropertiesFilter
This class implements the "locale" filter.
Constructor Summary | |
LocalePropertiesFilter()
Constructor. |
Method Summary | |
String |
getCondition()
Return " locale " |
static Locale |
getLocale(List pflist)
A convenient method for converting LocalePropertiesFilters into a locale object. |
static List |
getLocalePropertiesFilters(Locale locale,
boolean required)
A convenient method for converting Locale into a list of LocalePropertiesFilters . |
boolean |
match(String condition,
String value)
Does the given condition and value match this locale filter? This match method is based on a case-sensitive string comparison. |
Methods inherited from class com.sun.portal.providers.context.PropertiesFilter |
getValue, init, isRequired, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LocalePropertiesFilter()
PropertiesFilterFactory.get(LOCALE_PROPERTIESFILTER_CLASSNAME, ...)
.
PropertiesFilterFactory.get(String, String, boolean)
Method Detail |
public String getCondition()
locale
"
getCondition
in class PropertiesFilter
locale
"public boolean match(String condition, String value)
match
in class PropertiesFilter
condition
- filter condition. i.e. "locale"value
- locale suffix (i.e. en, US, etc.)
public static List getLocalePropertiesFilters(Locale locale, boolean required) throws PropertiesFilterException
LocalePropertiesFilters
.
locale
- Locale objectrequired
- boolean value that determines whether the filters are
required or optional
LocalePropertiesFilter
PropertiesFilterException
public static Locale getLocale(List pflist) throws PropertiesFilterException
pflist
- List of LocalePropertiesFilter objects or other
PropertiesFilter that are non-required.
PropertiesFilterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |