|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.resource.locator.ResourceNameIterator
public class ResourceNameIterator
Contains the logic to locate a resource based on a path, a style (see
Session
), a locale and a extension strings. The full filename will be
built like: <path>_<style>_<locale>.<extension>.
Resource matches will be attempted in the following order:
Locales may contain a language, a country and a region or variant. Combinations of these components will be attempted in the following order:
Extensions may be a comma separated list of extensions, e.g. "properties,xml"
Constructor Summary | |
---|---|
ResourceNameIterator(String path,
String style,
Locale locale,
String extensions)
Construct. |
Method Summary | |
---|---|
Locale |
getLocale()
Get the exact Locale which has been used for the latest resource path. |
boolean |
hasNext()
|
String |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceNameIterator(String path, String style, Locale locale, String extensions)
path
- The path of the resource without extensionstyle
- A theme or style (see Session
)locale
- The Locale to applyextensions
- the filname's extensions (comma separated)Method Detail |
---|
public final Locale getLocale()
public boolean hasNext()
hasNext
in interface Iterator<String>
Iterator.hasNext()
public String next()
next
in interface Iterator<String>
Iterator.next()
public void remove()
remove
in interface Iterator<String>
Iterator.remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |