org.apache.wicket.util.resource.locator
Class LocaleResourceNameIterator
java.lang.Object
org.apache.wicket.util.resource.locator.LocaleResourceNameIterator
- All Implemented Interfaces:
- java.util.Iterator
public class LocaleResourceNameIterator
- extends java.lang.Object
- implements java.util.Iterator
Contains the logic to build the various combinations of file path, style and locale required
while searching for Wicket resources. The full filename will be built like:
<path>_<style>_<locale>.<extension>.
Resource matches will be attempted in the following order:
- 1. <path>_<style>_<locale>.<extension>
- 2. <path>_<locale>.<extension>
- 3. <path>_<style>.<extension>
- 4. <path>.<extension>
Locales may contain a language, a country and a region or variant. Combinations of these
components will be attempted in the following order:
- locale.toString() see javadoc for Locale for more details
- <language>_<country>
- <language>
- Author:
- Juergen Donnerstag, Jonathan Locke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleResourceNameIterator
public LocaleResourceNameIterator(java.lang.String path,
java.util.Locale locale)
- Construct.
- Parameters:
path
- locale
-
getLocale
public java.util.Locale getLocale()
- Returns:
- Locale
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
- See Also:
Iterator.hasNext()
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
- See Also:
Iterator.next()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
- See Also:
Iterator.remove()
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.