public class DefaultOsgiManifest extends DefaultManifest implements OsgiManifest
| Constructor and Description |
|---|
DefaultOsgiManifest(FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
Factory<ContainedVersionAnalyzer> |
getAnalyzerFactory() |
java.io.File |
getClassesDir()
Returns the classes dir.
|
FileCollection |
getClasspath()
Returns the classpath.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getDocURL()
Returns the docURL value.
|
DefaultManifest |
getEffectiveManifest()
Returns a new manifest instance where all the attribute values are expanded (e.g.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getInstructions()
Returns all exisiting instruction.
|
java.lang.String |
getLicense()
Returns the license.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getSymbolicName()
Returns the symbolic name.
|
java.lang.String |
getVendor()
Returns the vendor.
|
java.lang.String |
getVersion()
Returns the version.
|
OsgiManifest |
instruction(java.lang.String name,
java.lang.String... values)
Adds arguments to an instruction.
|
OsgiManifest |
instructionFirst(java.lang.String name,
java.lang.String... values)
Adds arguments to an instruction.
|
java.util.List<java.lang.String> |
instructionValue(java.lang.String instructionName)
Returns the list of arguments for a particular instruction.
|
void |
setAnalyzerFactory(Factory<ContainedVersionAnalyzer> analyzerFactory) |
void |
setClassesDir(java.io.File classesDir)
Sets the classes dir.
|
void |
setClasspath(FileCollection classpath)
A convenient method for setting a Bundle-Classpath instruction.
|
void |
setDescription(java.lang.String description)
A convenient method for setting a Bundle-Description instruction.
|
void |
setDocURL(java.lang.String docURL)
A convenient method for setting a Bundle-DocURL instruction.
|
void |
setInstructions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> instructions) |
void |
setLicense(java.lang.String license)
A convenient method for setting a Bundle-License instruction.
|
void |
setName(java.lang.String name)
A convenient method for setting a Bundle-Name instruction.
|
void |
setSymbolicName(java.lang.String symbolicName)
A convenient method for setting a Bundle-SymbolicName instruction.
|
void |
setVendor(java.lang.String vendor)
A convenient method for setting a Bundle-Vendor instruction.
|
void |
setVersion(java.lang.String version)
A convenient method for setting a Bundle-Version instruction.
|
attributes, attributes, clear, from, from, getAttributes, getEffectiveManifestInternal, getMergeSpecs, getSections, isEqualsTo, mainAttributes, writeTo, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattributes, attributes, from, from, getAttributes, getSections, writeTo, writeTopublic DefaultOsgiManifest(FileResolver fileResolver)
public DefaultManifest getEffectiveManifest()
ManifestManifest.from(Object...).getEffectiveManifest in interface ManifestgetEffectiveManifest in class DefaultManifestpublic java.util.List<java.lang.String> instructionValue(java.lang.String instructionName)
OsgiManifestinstructionValue in interface OsgiManifestOsgiManifest.instruction(String, String...)public OsgiManifest instruction(java.lang.String name, java.lang.String... values)
OsgiManifestinstruction in interface OsgiManifestOsgiManifest.instructionFirst(String, String...)public OsgiManifest instructionFirst(java.lang.String name, java.lang.String... values)
OsgiManifestinstructionFirst in interface OsgiManifestname - Name of the instruction.values - The values for the instruction.OsgiManifest.instructionFirst(String, String...)public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInstructions()
OsgiManifestgetInstructions in interface OsgiManifestpublic void setInstructions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> instructions)
public java.lang.String getSymbolicName()
OsgiManifestgetSymbolicName in interface OsgiManifestOsgiManifest.setSymbolicName(String)public void setSymbolicName(java.lang.String symbolicName)
OsgiManifestsetSymbolicName in interface OsgiManifestsymbolicName - the symbolicName to setpublic java.lang.String getName()
OsgiManifestgetName in interface OsgiManifestOsgiManifest.setName(String)public void setName(java.lang.String name)
OsgiManifestsetName in interface OsgiManifestname - the name to setpublic java.lang.String getVersion()
OsgiManifestgetVersion in interface OsgiManifestOsgiManifest.setVersion(String)public void setVersion(java.lang.String version)
OsgiManifestsetVersion in interface OsgiManifestversion - the version to setpublic java.lang.String getDescription()
OsgiManifestgetDescription in interface OsgiManifestOsgiManifest.setDescription(String)public void setDescription(java.lang.String description)
OsgiManifestsetDescription in interface OsgiManifestdescription - the description to setpublic java.lang.String getLicense()
OsgiManifestgetLicense in interface OsgiManifestOsgiManifest.setLicense(String)public void setLicense(java.lang.String license)
OsgiManifestsetLicense in interface OsgiManifestlicense - The license to setpublic java.lang.String getVendor()
OsgiManifestgetVendor in interface OsgiManifestOsgiManifest.setVendor(String)public void setVendor(java.lang.String vendor)
OsgiManifestsetVendor in interface OsgiManifestvendor - The vendor to setpublic java.lang.String getDocURL()
OsgiManifestgetDocURL in interface OsgiManifestOsgiManifest.setDocURL(String)public void setDocURL(java.lang.String docURL)
OsgiManifestsetDocURL in interface OsgiManifestdocURL - the docURL to set.public java.io.File getClassesDir()
OsgiManifestgetClassesDir in interface OsgiManifestOsgiManifest.setClassesDir(java.io.File)public void setClassesDir(java.io.File classesDir)
OsgiManifestsetClassesDir in interface OsgiManifestOsgiManifest.instruction(String, String...)public FileCollection getClasspath()
OsgiManifestgetClasspath in interface OsgiManifestOsgiManifest.setClasspath(org.gradle.api.file.FileCollection)public void setClasspath(FileCollection classpath)
OsgiManifestsetClasspath in interface OsgiManifestclasspath - The classpath elementspublic Factory<ContainedVersionAnalyzer> getAnalyzerFactory()
public void setAnalyzerFactory(Factory<ContainedVersionAnalyzer> analyzerFactory)
Copyright © 2013. All rights reserved