Class MutableManifestElement
- java.lang.Object
-
- org.eclipse.tycho.versions.bundle.MutableManifestElement
-
public class MutableManifestElement extends Object
This class is similar toManifestElement
but supports changing value for attributes with a single value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttribute(String key)
Returns the value for the specified attribute ornull
if it does not exist.String
getValue()
static List<MutableManifestElement>
parseHeader(String name, String value)
boolean
setAttribute(String key, String value)
Set the value for the specified attribute.String
toString()
String
write()
-
-
-
Method Detail
-
parseHeader
public static List<MutableManifestElement> parseHeader(String name, String value) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
getValue
public String getValue()
- Returns:
- See Also:
ManifestElement.getValue()
-
setAttribute
public boolean setAttribute(String key, String value)
Set the value for the specified attribute. If previous values existed they are replaced.- Parameters:
key
-value
-- Returns:
- returns true if the manifest element changed due to this call. false if the value was already the same.
-
getAttribute
public String getAttribute(String key)
Returns the value for the specified attribute ornull
if it does not exist. If the attribute has multiple values specified then the last value specified is returned.- Parameters:
key
-- Returns:
- See Also:
ManifestElement.getAttribute(String)
-
write
public String write()
-
-