|
Eclipse Platform Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.equinox.frameworkadmin.BundleInfo
public class BundleInfo
This object represents information of a bundle.
Field Summary | |
---|---|
static String |
EMPTY_VERSION
|
static int |
NO_BUNDLEID
|
static int |
NO_LEVEL
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EMPTY_VERSION
public static final int NO_LEVEL
public static final int NO_BUNDLEID
Constructor Detail |
---|
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 startedMethod Detail |
---|
public long getBundleId()
NO_BUNDLEID
public URI getBaseLocation()
getLocation()
URIs
public 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 resolved
baseLocation
- - 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
string
value
- public void setFragmentHost(String fragmentHost)
fragmentHost
- public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
Eclipse Platform Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.