|
Griffon 1.2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
public interface ResourceResolver
Interface for resolving resources, with support for the parameterization and internationalization of such resources.
| Method Summary | |
|---|---|
Object
|
resolveResource(String key)
Try to resolve the resource. |
Object
|
resolveResource(String key, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object[] args)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object[] args, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, List args)
Try to resolve the resource. |
Object
|
resolveResource(String key, List args, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object defaultValue)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object defaultValue, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object[] args, Object defaultValue)
Try to resolve the resource. |
Object
|
resolveResource(String key, Object[] args, Object defaultValue, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, List args, Object defaultValue)
Try to resolve the resource. |
Object
|
resolveResource(String key, List args, Object defaultValue, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, Map args)
Try to resolve the resource. |
Object
|
resolveResource(String key, Map args, Locale locale)
Try to resolve the resource. |
Object
|
resolveResource(String key, Map args, Object defaultValue)
Try to resolve the resource. |
Object
|
resolveResource(String key, Map args, Object defaultValue, Locale locale)
Try to resolve the resource. |
| Method Detail |
|---|
public Object resolveResource(String key)
key - Key to lookup, such as 'sample.SampleModel.icon'
public Object resolveResource(String key, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'locale - Locale in which to lookup
public Object resolveResource(String key, Object[] args)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}" within a
resource, but this might differ between implementations), or null if none.
public Object resolveResource(String key, Object[] args, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}" within a
resource, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public Object resolveResource(String key, List args)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}" within a
resource, but this might differ between implementations), or null if none.
public Object resolveResource(String key, List args, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}" within a
resource, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public Object resolveResource(String key, Object defaultValue)
key - Key to lookup, such as 'sample.SampleModel.icon'defaultValue - Message to return if the lookup fails
public Object resolveResource(String key, Object defaultValue, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'defaultValue - Message to return if the lookup failslocale - Locale in which to lookup
public Object resolveResource(String key, Object[] args, Object defaultValue)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup fails
public Object resolveResource(String key, Object[] args, Object defaultValue, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup failslocale - Locale in which to lookup
public Object resolveResource(String key, List args, Object defaultValue)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup fails
public Object resolveResource(String key, List args, Object defaultValue, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{0}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup failslocale - Locale in which to lookup
public Object resolveResource(String key, Map args)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{:key}"
within a resource, but this might differ between implementations), or null if none.
public Object resolveResource(String key, Map args, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{:key}"
within a resource, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public Object resolveResource(String key, Map args, Object defaultValue)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{:key}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup fails
public Object resolveResource(String key, Map args, Object defaultValue, Locale locale)
key - Key to lookup, such as 'sample.SampleModel.icon'args - Arguments that will be filled in for params within the resource (params look like "{:key}"
within a resource, but this might differ between implementations), or null if none.defaultValue - Message to return if the lookup failslocale - Locale in which to lookup
Groovy Documentation