Class ConvertedResource
java.lang.Object
org.apache.felix.bundlerepository.impl.wrapper.ConvertedResource
- All Implemented Interfaces:
Resource
-
Field Summary
Fields inherited from interface org.apache.felix.bundlerepository.Resource
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the capabilitiesString[]
Retrieve this resource categoriesgetId()
Shortcut for {{getProperties().get(ID)}}Shortcut for {{getProperties().get(PRESENTATION_NAME)}}Get all resource propertiesRetrieve the requirementsgetSize()
Shortcut for {{getProperties().get(SIZE)}}Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}getURI()
Shortcut for {{getProperties().get(URI)}}org.osgi.framework.Version
Shortcut for {{getProperties().get(VERSION)}}boolean
isLocal()
Returns whether this resource is a local one or not.
-
Constructor Details
-
ConvertedResource
public ConvertedResource(org.osgi.service.obr.Resource resource)
-
-
Method Details
-
getCapabilities
Description copied from interface:Resource
Retrieve the capabilities- Specified by:
getCapabilities
in interfaceResource
- Returns:
-
getRequirements
Description copied from interface:Resource
Retrieve the requirements- Specified by:
getRequirements
in interfaceResource
- Returns:
-
getCategories
Description copied from interface:Resource
Retrieve this resource categories- Specified by:
getCategories
in interfaceResource
- Returns:
-
getId
Description copied from interface:Resource
Shortcut for {{getProperties().get(ID)}} -
getPresentationName
Description copied from interface:Resource
Shortcut for {{getProperties().get(PRESENTATION_NAME)}}- Specified by:
getPresentationName
in interfaceResource
- Returns:
-
getProperties
Description copied from interface:Resource
Get all resource properties- Specified by:
getProperties
in interfaceResource
- Returns:
-
getSize
Description copied from interface:Resource
Shortcut for {{getProperties().get(SIZE)}} -
getSymbolicName
Description copied from interface:Resource
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}- Specified by:
getSymbolicName
in interfaceResource
- Returns:
-
getURI
Description copied from interface:Resource
Shortcut for {{getProperties().get(URI)}} -
getVersion
public org.osgi.framework.Version getVersion()Description copied from interface:Resource
Shortcut for {{getProperties().get(VERSION)}}- Specified by:
getVersion
in interfaceResource
- Returns:
-
isLocal
public boolean isLocal()Description copied from interface:Resource
Returns whether this resource is a local one or not. Local resources are already available in the OSGi framework and thus will be preferred over other resources.
-