1 package com.atlassian.plugin;
2
3 import com.atlassian.plugin.elements.ResourceDescriptor;
4 import com.atlassian.plugin.elements.ResourceLocation;
5
6 import java.util.List;
7
8 public interface Resourced {
9 /**
10 * Get a {@link List} of all the {@link ResourceDescriptor descriptors}
11 * .
12 * <p>
13 * Note: since 2.2 this list must be immutable, previously modifying this
14 * list could modify the underlying list.
15 *
16 * @return all resource descriptors this object supports.
17 */
18 List<ResourceDescriptor> getResourceDescriptors();
19
20 /**
21 * Get a {@link ResourceDescriptor} of a particular type and name.
22 *
23 * @return the specified resource descriptor if found, null otherwise.
24 */
25 ResourceDescriptor getResourceDescriptor(String type, String name);
26
27 /**
28 * Get a {@link ResourceLocation} of a particular type and name.
29 *
30 * @return the specified resource location if found, null otherwise.
31 */
32 ResourceLocation getResourceLocation(String type, String name);
33 }