Package aQute.bnd.osgi
Class Domain
java.lang.Object
aQute.bnd.osgi.Domain
- Direct Known Subclasses:
Processor
This class abstracts domains that have properties holding OSGi meta data. It
provides access to the keys, the set method and the get method. It then
provides convenient methods to access these properties via semantic methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Domaindomain(byte[] data) static Domainstatic Domainstatic Domaindomain(Attributes attrs) static Domaindomain(JarInputStream jin) static Domainstatic Domainabstract StringgetIcon(int requestedSize) Find an icon with the requested size in the list of icons.private StringgetParameters(String key) getParameters(String key, boolean allowDuplicates) getParameters(String key, Reporter reporter) getParameters(String key, String deflt) getParameters(String key, String deflt, Reporter reporter) getRunee()booleanisFailOk()Indicates that this run should ignore errors and succeed anywaybooleanstatic StringnormalizeKey(String key) abstract voidvoidsetAugment(String augments) voidvoidvoidvoidvoidsetBundleVersion(Version version) voidsetBundleVersion(String version) voidsetConditionalPackage(String string) voidvoidvoidsetFailOk(boolean b) voidvoidsetIncludePackage(String value) voidvoidvoidsetRunblacklist(String blacklist) voidvoidvoidsetRunRequires(String runRq) voidsetSources(boolean b) voidsetTranslation(Jar jar) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
translation
-
-
Constructor Details
-
Domain
public Domain()
-
-
Method Details
-
get
-
get
-
translate
-
translate
-
set
-
normalizeKey
-
domain
-
domain
-
domain
-
domain
-
getParameters
-
getParameters
-
getParameters
-
getParameters
-
getParameters
-
getRequireBundle
-
getImportPackage
-
getExportPackage
-
getBundleClassPath
-
getPrivatePackage
-
getIncludeResource
-
getDynamicImportPackage
-
getExportContents
-
setExportContents
-
getBundleActivator
-
setPrivatePackage
-
setIncludeResource
-
setBundleActivator
-
setExportPackage
-
setImportPackage
-
setBundleClasspath
-
getBundleClasspath
-
setBundleRequiredExecutionEnvironment
-
getBundleRequiredExecutionEnvironment
-
setSources
public void setSources(boolean b) -
isSources
public boolean isSources() -
getBundleSymbolicName
-
getFragmentHost
-
setBundleSymbolicName
-
getBundleVersion
-
setBundleVersion
-
setBundleVersion
-
setFailOk
public void setFailOk(boolean b) -
setRunfw
-
setRunRequires
-
setAugment
-
isFailOk
public boolean isFailOk()Indicates that this run should ignore errors and succeed anyway- Returns:
- true if this processor should return errors
-
getIcon
Find an icon with the requested size in the list of icons.- Parameters:
requestedSize- the number of pixels desired- Returns:
- null or a the selected URI (which may be relative)
- Throws:
Exception
-
setConditionalPackage
-
setRunblacklist
-
getRunblacklist
-
setRunee
-
getRunee
-
setTranslation
- Throws:
Exception
-
getRequireCapability
-
getProvideCapability
-
domain
-
domain
- Throws:
IOException
-
domain
- Throws:
IOException
-
getLocalization
-
getBundleName
-
getBundleDescription
-
getBundleCopyright
-
getBundleDocURL
-
getBundleVendor
-
getBundleContactAddress
-
getBundleCategory
-
getBundleNative
-
copyFrom
-
setIncludePackage
-