Class PrefixFileMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.PrefixFileMapper
-
- All Implemented Interfaces:
FileMapper
@Named("prefix") public class PrefixFileMapper extends AbstractFileMapperA file mapper, which maps by adding a prefix.
-
-
Constructor Summary
Constructors Constructor Description PrefixFileMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMappedFileName(String name)Checks the input and returns it without modifications.static StringgetMappedFileName(String prefix, String name)Performs the mapping of a file name by adding a prefix.StringgetPrefix()Returns the prefix to add.voidsetPrefix(String prefix)Sets the prefix to add.
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The merge mappers role-hint: "prefix".- See Also:
- Constant Field Values
-
-
Method Detail
-
getMappedFileName
@Nonnull public String getMappedFileName(@Nonnull String name)
Description copied from class:AbstractFileMapperChecks the input and returns it without modifications.- Specified by:
getMappedFileNamein interfaceFileMapper- Overrides:
getMappedFileNamein classAbstractFileMapper- 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.
-
-