Class ResourceNameIterator

java.lang.Object
org.apache.wicket.core.util.resource.locator.ResourceNameIterator
All Implemented Interfaces:
Iterator<String>, IResourceNameIterator
Direct Known Subclasses:
EmptyResourceNameIterator

public class ResourceNameIterator extends Object implements IResourceNameIterator
Contains the logic to locate a resource based on a path, style (see Session), variation, locale and extension strings. The full filename will be built like: <path>_<variation>_<style>_<locale>.<extension>.

Resource matches will be attempted in the following order:

  1. <path>_<variation>_<style>_<locale>.<extension>
  2. <path>_<variation>_<style>.<extension>
  3. <path>_<style>_<locale>.<extension>
  4. <path>_<style>.<extension>
  5. <path>_<variation>_<locale>.<extension>
  6. <path>_<variation>.<extension>
  7. <path>_<locale>.<extension>
  8. <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:

  1. locale.toString() see javadoc for Locale for more details
  2. <language>_<country>
  3. <language>
Author:
Juergen Donnerstag