public class LazyLocalResourceImpl extends java.lang.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 and Description |
---|---|
org.osgi.framework.Bundle |
getBundle() |
Capability[] |
getCapabilities()
Retrieve the capabilities
|
java.lang.String[] |
getCategories()
Retrieve this resource categories
|
java.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 properties
|
Requirement[] |
getRequirements()
Retrieve the requirements
|
java.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.
|
java.lang.String |
toString() |
public boolean isLocal()
Resource
public org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.BundleReference
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map getProperties()
Resource
getProperties
in interface Resource
public java.lang.String getId()
Resource
public java.lang.String getSymbolicName()
Resource
getSymbolicName
in interface Resource
public org.osgi.framework.Version getVersion()
Resource
getVersion
in interface Resource
public java.lang.String getPresentationName()
Resource
getPresentationName
in interface Resource
public java.lang.String getURI()
Resource
public java.lang.Long getSize()
Resource
public java.lang.String[] getCategories()
Resource
getCategories
in interface Resource
public Capability[] getCapabilities()
Resource
getCapabilities
in interface Resource
public Requirement[] getRequirements()
Resource
getRequirements
in interface Resource
Copyright © 2006-2017 The Apache Software Foundation. All Rights Reserved.