|
Eclipse Platform Kepler (4.3) |
|||||||||
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 java.lang.String |
EMPTY_VERSION
|
static int |
NO_BUNDLEID
|
static int |
NO_LEVEL
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EMPTY_VERSION
public static final int NO_LEVEL
public static final int NO_BUNDLEID
Constructor Detail |
---|
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_LEVEL
started
- - 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_LEVEL
started
- - whether or not the bundle should be startedMethod Detail |
---|
public long getBundleId()
NO_BUNDLEID
public java.net.URI getBaseLocation()
getLocation()
URIs
public java.net.URI getLocation()
public java.lang.String getManifest()
public int getStartLevel()
NO_LEVEL
public 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 resolved
baseLocation
- - 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_LEVEL
public void setSymbolicName(java.lang.String symbolicName)
symbolicName
- public void setVersion(java.lang.String value)
Version
string
value
- public void setFragmentHost(java.lang.String fragmentHost)
fragmentHost
- public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
Eclipse Platform Kepler (4.3) |
|||||||||
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.