Class MutableManifestElement


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

      • 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)
      • write

        public String write()