Package org.eclipse.tycho.model.manifest
Class MutableManifestElement
java.lang.Object
org.eclipse.tycho.model.manifest.MutableManifestElement
This class is similar to
ManifestElement but supports changing value for attributes with
a single value.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Returns the value for the specified attribute ornullif it does not exist.getValue()static List<MutableManifestElement> parseHeader(String name, String value) booleansetAttribute(String key, String value) Set the value for the specified attribute.toString()write()
-
Constructor Details
-
MutableManifestElement
-
-
Method Details
-
parseHeader
public static List<MutableManifestElement> parseHeader(String name, String value) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
getValue
- Returns:
- See Also:
-
setAttribute
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
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:
-
toString
-
write
-