|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resource
A resource is an abstraction of a downloadable thing, like a bundle. Resources have capabilities and requirements. All a resource's requirements must be satisfied before it can be installed.
| Field Summary | |
|---|---|
static String |
CATEGORY
|
static String |
COPYRIGHT
|
static String |
DESCRIPTION
|
static String |
DOCUMENTATION_URI
|
static String |
ID
|
static String |
JAVADOC_URI
|
static String |
LICENSE_URI
|
static String |
MANIFEST_VERSION
|
static String |
PRESENTATION_NAME
|
static String |
SIZE
|
static String |
SOURCE_URI
|
static String |
SYMBOLIC_NAME
|
static String |
URI
|
static String |
VERSION
|
| Method Summary | |
|---|---|
Capability[] |
getCapabilities()
Retrieve the capabilities |
String[] |
getCategories()
Retrieve this resource categories |
String |
getId()
Shortcut for {{getProperties().get(ID)}} |
String |
getPresentationName()
Shortcut for {{getProperties().get(PRESENTATION_NAME)}} |
Map |
getProperties()
Get all resource properties |
Requirement[] |
getRequirements()
Retrieve the requirements |
Long |
getSize()
Shortcut for {{getProperties().get(SIZE)}} |
String |
getSymbolicName()
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}} |
String |
getURI()
Shortcut for {{getProperties().get(URI)}} |
org.osgi.framework.Version |
getVersion()
Shortcut for {{getProperties().get(VERSION)}} |
boolean |
isLocal()
Returns whether this resource is a local one or not. |
| Field Detail |
|---|
static final String LICENSE_URI
static final String DESCRIPTION
static final String DOCUMENTATION_URI
static final String COPYRIGHT
static final String SOURCE_URI
static final String JAVADOC_URI
static final String SYMBOLIC_NAME
static final String PRESENTATION_NAME
static final String ID
static final String VERSION
static final String URI
static final String SIZE
static final String CATEGORY
static final String MANIFEST_VERSION
| Method Detail |
|---|
Map getProperties()
String getId()
String getSymbolicName()
org.osgi.framework.Version getVersion()
String getPresentationName()
String getURI()
Long getSize()
String[] getCategories()
Capability[] getCapabilities()
Requirement[] getRequirements()
boolean isLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||