Class XmlAlter.File

java.lang.Object
com.artipie.rpm.meta.XmlAlter.File
All Implemented Interfaces:
XmlAlter
Enclosing interface:
XmlAlter

public static class XmlAlter.File extends Object implements XmlAlter
Implementation of XmlAlter that alters tag of the provided file.
Since:
1.4
  • Constructor Details

    • File

      public File(Path file)
      Ctor.
      Parameters:
      file - File to update
  • Method Details

    • pkgAttr

      public void pkgAttr(String tag, String value) throws IOException
      Description copied from interface: XmlAlter
      Updates `packages` attribute of the given tag with specified value.
      Specified by:
      pkgAttr in interface XmlAlter
      Parameters:
      tag - Tag to change
      value - Value for the attribute
      Throws:
      IOException - When error occurs