|
||||||||||
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(java.lang.String path,
java.lang.String style,
java.util.Locale locale,
java.lang.String extensions)
Construct. |
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Get the exact Locale which has been used for the latest resource path. |
boolean |
hasNext()
|
java.lang.Object |
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(java.lang.String path, java.lang.String style, java.util.Locale locale, java.lang.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 java.util.Locale getLocale()
public boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public void remove()
remove
in interface java.util.Iterator
Iterator.remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |