public class BundleInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EMPTY_VERSION |
static int |
NO_BUNDLEID |
static int |
NO_LEVEL |
| Constructor and Description |
|---|
BundleInfo()
Create a new BundleInfo object
|
BundleInfo(java.lang.String symbolic,
java.lang.String version,
java.net.URI location,
int startLevel,
boolean started)
Create a new BundleInfo object
|
BundleInfo(java.net.URI location)
Create a new BundleInfo object
|
BundleInfo(java.net.URI location,
int startLevel,
boolean started)
Create a new BundleInfo object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.net.URI |
getBaseLocation()
The base location
An absolute URI which may be used to resolve relative
getLocation() URIs |
long |
getBundleId()
Get the bundle id
|
java.lang.String |
getFragmentHost()
Return the host if this bundle is a fragment
|
java.net.URI |
getLocation()
The location of this bundle.
|
java.lang.String |
getManifest()
The manifest for this bundle
|
int |
getStartLevel()
The start level for this bundle
|
java.lang.String |
getSymbolicName()
The Bundle-SymbolicName for this bundle.
|
java.lang.String |
getVersion()
Return the version
|
int |
hashCode() |
boolean |
isMarkedAsStarted()
Whether or not this bundle is marked to be started
Default is false
|
boolean |
isResolved()
Whether or not this bundle is resolved
Default is false
|
void |
setBaseLocation(java.net.URI baseLocation)
Set a base location against which relative
getLocation() URIs may be resolved |
void |
setBundleId(long bundleId)
Set the bundle id
|
void |
setFragmentHost(java.lang.String fragmentHost)
Set the host if this bundle is a fragment
|
void |
setLocation(java.net.URI location)
Set the location for this bundle.
|
void |
setManifest(java.lang.String manifest)
Set the manifest for this bundle
|
void |
setMarkedAsStarted(boolean markedAsStarted)
Set whether or not this bundle should be started
|
void |
setResolved(boolean resolved)
Set whether or not the bundle is resolved
|
void |
setStartLevel(int level)
Set the start level.
|
void |
setSymbolicName(java.lang.String symbolicName)
Set the Bundle-SymbolicName
|
void |
setVersion(java.lang.String value)
Set the version, should be a valid
Version string |
java.lang.String |
toString() |
public static final java.lang.String EMPTY_VERSION
public static final int NO_LEVEL
public static final int NO_BUNDLEID
public BundleInfo()
public BundleInfo(java.net.URI location)
location - - the location of the bundlepublic BundleInfo(java.net.URI location,
int startLevel,
boolean started)
location - - the location of the bundlestartLevel - - the start to be used or NO_LEVELstarted - - whether or not the bundle should be startedpublic BundleInfo(java.lang.String symbolic,
java.lang.String version,
java.net.URI location,
int startLevel,
boolean started)
symbolic - The Bundle-SymbolicName name for this bundleversion - - The version for this bundle, this must be a valid Version string, if null is passed EMPTY_VERSION will be used insteadlocation - - the location of the bundlestartLevel - - the start level of the bundle or NO_LEVELstarted - - whether or not the bundle should be startedpublic long getBundleId()
NO_BUNDLEIDpublic java.net.URI getBaseLocation()
getLocation() URIspublic java.net.URI getLocation()
public java.lang.String getManifest()
public int getStartLevel()
NO_LEVELpublic java.lang.String getSymbolicName()
public java.lang.String getVersion()
Version string, or "0.0.0" if not setpublic java.lang.String getFragmentHost()
public boolean isMarkedAsStarted()
public boolean isResolved()
public void setBundleId(long bundleId)
bundleId - public void setBaseLocation(java.net.URI baseLocation)
getLocation() URIs may be resolvedbaseLocation - - an absolute URIpublic void setLocation(java.net.URI location)
location - public void setManifest(java.lang.String manifest)
manifest - public void setMarkedAsStarted(boolean markedAsStarted)
markedAsStarted - public void setResolved(boolean resolved)
resolved - public void setStartLevel(int level)
level - if a value < 0 is passed, the start level will be set to NO_LEVELpublic void setSymbolicName(java.lang.String symbolicName)
symbolicName - public void setVersion(java.lang.String value)
Version stringvalue - public void setFragmentHost(java.lang.String fragmentHost)
fragmentHost - public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.