Class SuffixFileMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.SuffixFileMapper
-
- All Implemented Interfaces:
FileMapper
@Named("suffix") public class SuffixFileMapper extends AbstractFileMapperA file mapper, which maps by adding a suffix to the filename. If the filename contains dot, the suffix will be added before. Example:directory/archive.tar.gz => directory/archivesuffix.tar.gz
-
-
Constructor Summary
Constructors Constructor Description SuffixFileMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMappedFileName(String pName)Checks the input and returns it without modifications.StringgetSuffix()Returns the suffix to add.voidsetSuffix(String suffix)Sets the suffix to add.
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The suffix mappers role-hint: "suffix".- See Also:
- Constant Field Values
-
-
Method Detail
-
getSuffix
public String getSuffix()
Returns the suffix to add.
-
setSuffix
public void setSuffix(String suffix)
Sets the suffix to add.
-
getMappedFileName
@Nonnull public String getMappedFileName(@Nonnull String pName)
Description copied from class:AbstractFileMapperChecks the input and returns it without modifications.- Specified by:
getMappedFileNamein interfaceFileMapper- Overrides:
getMappedFileNamein classAbstractFileMapper- Parameters:
pName- The source name.- Returns:
- The target name.
-
-