public class BundleInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_VERSION |
static int |
NO_BUNDLEID |
static int |
NO_LEVEL |
Constructor and Description |
---|
BundleInfo()
Create a new BundleInfo object
|
BundleInfo(String symbolic,
String version,
URI location,
int startLevel,
boolean started)
Create a new BundleInfo object
|
BundleInfo(URI location)
Create a new BundleInfo object
|
BundleInfo(URI location,
int startLevel,
boolean started)
Create a new BundleInfo object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
URI |
getBaseLocation()
The base location
An absolute URI which may be used to resolve relative
getLocation() URIs |
long |
getBundleId()
Get the bundle id
|
String |
getFragmentHost()
Return the host if this bundle is a fragment
|
URI |
getLocation()
The location of this bundle.
|
String |
getManifest()
The manifest for this bundle
|
int |
getStartLevel()
The start level for this bundle
|
String |
getSymbolicName()
The Bundle-SymbolicName for this bundle.
|
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(URI baseLocation)
Set a base location against which relative
getLocation() URIs may be resolved |
void |
setBundleId(long bundleId)
Set the bundle id
|
void |
setFragmentHost(String fragmentHost)
Set the host if this bundle is a fragment
|
void |
setLocation(URI location)
Set the location for this bundle.
|
void |
setManifest(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(String symbolicName)
Set the Bundle-SymbolicName
|
void |
setVersion(String value)
Set the version, should be a valid
Version string |
String |
toString() |
public static final String EMPTY_VERSION
public static final int NO_LEVEL
public static final int NO_BUNDLEID
public BundleInfo()
public BundleInfo(URI location)
location
- - the location of the bundlepublic BundleInfo(URI location, int startLevel, boolean started)
location
- - the location of the bundlestartLevel
- - the start to be used or NO_LEVEL
started
- - whether or not the bundle should be startedpublic BundleInfo(String symbolic, String version, 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_LEVEL
started
- - whether or not the bundle should be startedpublic long getBundleId()
NO_BUNDLEID
public URI getBaseLocation()
getLocation()
URIspublic URI getLocation()
public String getManifest()
public int getStartLevel()
NO_LEVEL
public String getSymbolicName()
public String getVersion()
Version
string, or "0.0.0" if not setpublic String getFragmentHost()
public boolean isMarkedAsStarted()
public boolean isResolved()
public void setBundleId(long bundleId)
bundleId
- public void setBaseLocation(URI baseLocation)
getLocation()
URIs may be resolvedbaseLocation
- - an absolute URIpublic void setLocation(URI location)
location
- public void setManifest(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_LEVEL
public void setSymbolicName(String symbolicName)
symbolicName
- public void setVersion(String value)
Version
stringvalue
- public void setFragmentHost(String fragmentHost)
fragmentHost
-
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.