LocalResource, Resource, org.osgi.framework.BundleReferencepublic class LazyLocalResourceImpl extends Object implements LocalResource
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION| Modifier and Type | Method | Description |
|---|---|---|
org.osgi.framework.Bundle |
getBundle() |
|
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.
|
String |
toString() |
public boolean isLocal()
Resourcepublic org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleReferencepublic Map getProperties()
ResourcegetProperties in interface Resourcepublic String getId()
Resourcepublic String getSymbolicName()
ResourcegetSymbolicName in interface Resourcepublic org.osgi.framework.Version getVersion()
ResourcegetVersion in interface Resourcepublic String getPresentationName()
ResourcegetPresentationName in interface Resourcepublic String getURI()
Resourcepublic Long getSize()
Resourcepublic String[] getCategories()
ResourcegetCategories in interface Resourcepublic Capability[] getCapabilities()
ResourcegetCapabilities in interface Resourcepublic Requirement[] getRequirements()
ResourcegetRequirements in interface ResourceCopyright © 2018. All rights reserved.