Class MutableManifestElement

java.lang.Object
org.eclipse.tycho.model.manifest.MutableManifestElement

public class MutableManifestElement extends Object
This class is similar to ManifestElement but supports changing value for attributes with a single value.
  • Constructor Details

  • Method Details

    • 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 or null 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • write

      public String write()