java.lang.Object | |
↳ | com.atlassian.plugin.Resources |
An aggregate of all resource descriptors within the given plugin module or plugin.
resources
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resources.TypeFilter |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EMPTY_RESOURCES |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a resource object with the given resource descriptors.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parses the resource descriptors from the provided plugin XML element and
creates a Resources object containing them.
| |||||||||||
Get a
ResourceDescriptor of a particular type and name. | |||||||||||
* @deprecated since 2.5.0 use
getResourceDescriptors() and
filter as required
| |||||||||||
Get a
List of all the descriptors
. | |||||||||||
Get a
ResourceLocation of a particular type and name. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.Resourced
|
Create a resource object with the given resource descriptors. The provided list must not be null.
resourceDescriptors | the descriptors which are part of this resources object |
---|
IllegalArgumentException | if the resourceDescriptors list is null |
---|
Parses the resource descriptors from the provided plugin XML element and creates a Resources object containing them.
If the module or plugin contains no resource elements, an empty Resources object will be returned. This method will not return null.element | the plugin or plugin module XML fragment which should not be null |
---|
PluginParseException | if there are two resources with the same name and type in this element, or another parse error occurs |
---|---|
IllegalArgumentException | if the provided element is null |
Get a ResourceDescriptor
of a particular type and name.
* @deprecated since 2.5.0 use getResourceDescriptors()
and
filter as required
Get a List
of all the descriptors
.
Note: since 2.2 this list must be immutable, previously modifying this list could modify the underlying list.
Get a ResourceLocation
of a particular type and name.