|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.cocoon.DSpaceLocaleAction.DSpaceLocaleValidator
public static class DSpaceLocaleAction.DSpaceLocaleValidator
This validator class works with cocoon's i18nutils class to test if locales are valid. For dspace we define a locale as valid if it is listed in xmlui.supported.locales config parameter.
| Constructor Summary | |
|---|---|
DSpaceLocaleAction.DSpaceLocaleValidator()
Build a list supported locales to validate against upon object construction. |
|
| Method Summary | |
|---|---|
boolean |
test(java.lang.String name,
java.util.Locale test)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSpaceLocaleAction.DSpaceLocaleValidator()
| Method Detail |
|---|
public boolean test(java.lang.String name,
java.util.Locale test)
test in interface org.apache.cocoon.i18n.I18nUtils.LocaleValidatorname - name of the locale (for debugging)test - locale to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||