|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceURIVariations
A ResourceURIVariations object represents a selection of resources.
The resource aggregation framework will choose just one URI out of the set of resources.
The purpose of the Resource
object is to provide different types of the same resource and let the
framework chose which one of the resources fits best within the current rendering context.
For instance one could provide multiple resources like this:
Method Summary | |
---|---|
ResourceURIVariations |
add(java.lang.String uri)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.util.Locale locale)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.util.Locale locale,
Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.lang.String deviceClass)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.lang.String deviceClass,
java.util.Locale locale)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.lang.String deviceClass,
java.util.Locale locale,
Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
ResourceURIVariations |
add(java.lang.String uri,
java.lang.String deviceClass,
Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters. |
Method Detail |
---|
ResourceURIVariations add(java.lang.String uri)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.
.add().add()
ResourceURIVariations add(java.lang.String uri, Resource.URIType... uritypes)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.uritypes
- the type(s) of the resource
.add().add()
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.deviceClass
- the device class or device class equation. Must not be null
.
.add().add()
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, Resource.URIType... uritypes)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.deviceClass
- the device class or device class equation. Must not be null
.uritypes
- the type(s) of the resource
.add().add()
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.deviceClass
- the device class or device class equation. Must not be null
.locale
- the locale this resource is bound to. Must not be null
.
.add().add()
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale, Resource.URIType... uritypes)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.deviceClass
- the device class or device class equation. Must not be null
.uritypes
- the type(s) of the resourcelocale
- the locale this resource is bound to. Must not be null
.
.add().add()
ResourceURIVariations add(java.lang.String uri, java.util.Locale locale, Resource.URIType... uritypes)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.uritypes
- the type(s) of the resourcelocale
- the locale this resource is bound to. Must not be null
.
.add().add()
ResourceURIVariations add(java.lang.String uri, java.util.Locale locale)
Resource
object to the resource variation and initializes it with the given parameters.
Calling this function multiple times allows to add multiple resources into this resource variation.
uri
- the uri of the resource. Must not be null
.locale
- the locale this resource is bound to. Must not be null
.
.add().add()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |