Class ConvertedResource
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.wrapper.ConvertedResource
-
-
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 Constructor Description ConvertedResource(org.osgi.service.obr.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Capability[]
getCapabilities()
Retrieve the capabilitiesjava.lang.String[]
getCategories()
Retrieve this resource categoriesjava.lang.String
getId()
Shortcut for {{getProperties().get(ID)}}java.lang.String
getPresentationName()
Shortcut for {{getProperties().get(PRESENTATION_NAME)}}java.util.Map
getProperties()
Get all resource propertiesRequirement[]
getRequirements()
Retrieve the requirementsjava.lang.Long
getSize()
Shortcut for {{getProperties().get(SIZE)}}java.lang.String
getSymbolicName()
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}java.lang.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.
-
-
-
Method Detail
-
getCapabilities
public Capability[] getCapabilities()
Description copied from interface:Resource
Retrieve the capabilities- Specified by:
getCapabilities
in interfaceResource
- Returns:
-
getRequirements
public Requirement[] getRequirements()
Description copied from interface:Resource
Retrieve the requirements- Specified by:
getRequirements
in interfaceResource
- Returns:
-
getCategories
public java.lang.String[] getCategories()
Description copied from interface:Resource
Retrieve this resource categories- Specified by:
getCategories
in interfaceResource
- Returns:
-
getId
public java.lang.String getId()
Description copied from interface:Resource
Shortcut for {{getProperties().get(ID)}}
-
getPresentationName
public java.lang.String getPresentationName()
Description copied from interface:Resource
Shortcut for {{getProperties().get(PRESENTATION_NAME)}}- Specified by:
getPresentationName
in interfaceResource
- Returns:
-
getProperties
public java.util.Map getProperties()
Description copied from interface:Resource
Get all resource properties- Specified by:
getProperties
in interfaceResource
- Returns:
-
getSize
public java.lang.Long getSize()
Description copied from interface:Resource
Shortcut for {{getProperties().get(SIZE)}}
-
getSymbolicName
public java.lang.String getSymbolicName()
Description copied from interface:Resource
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}- Specified by:
getSymbolicName
in interfaceResource
- Returns:
-
getURI
public java.lang.String 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:
-
-