Class PrefixFileMapper

java.lang.Object
org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.PrefixFileMapper
All Implemented Interfaces:
FileMapper

public class PrefixFileMapper extends AbstractFileMapper
A file mapper, which maps by adding a prefix.
  • Field Details

  • Constructor Details

    • PrefixFileMapper

      public PrefixFileMapper()
  • Method Details

    • getMappedFileName

      @Nonnull public String getMappedFileName(@Nonnull String name)
      Description copied from class: AbstractFileMapper
      Checks the input and returns it without modifications.
      Specified by:
      getMappedFileName in interface FileMapper
      Overrides:
      getMappedFileName in class AbstractFileMapper
      Parameters:
      name - The source name.
      Returns:
      The target name.
    • getPrefix

      public String getPrefix()
      Returns the prefix to add.
    • setPrefix

      public void setPrefix(String prefix)
      Sets the prefix to add.
    • getMappedFileName

      public static String getMappedFileName(String prefix, String name)
      Performs the mapping of a file name by adding a prefix.