Class MutableManifestElement
- java.lang.Object
-
- org.eclipse.tycho.versions.bundle.MutableManifestElement
-
public class MutableManifestElement extends Object
This class is similar toManifestElementbut supports changing value for attributes with a single value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute(String key)Returns the value for the specified attribute ornullif it does not exist.StringgetValue()static List<MutableManifestElement>parseHeader(String name, String value)booleansetAttribute(String key, String value)Set the value for the specified attribute.StringtoString()Stringwrite()
-
-
-
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 ornullif 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()
-
-