Class PrefixFileMapper
java.lang.Object
org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.PrefixFileMapper
- All Implemented Interfaces:
FileMapper
A file mapper, which maps by adding a prefix.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMappedFileName
(String name) Checks the input and returns it without modifications.static String
getMappedFileName
(String prefix, String name) Performs the mapping of a file name by adding a prefix.Returns the prefix to add.void
Sets the prefix to add.
-
Field Details
-
ROLE_HINT
The merge mappers role-hint: "prefix".- See Also:
-
-
Constructor Details
-
PrefixFileMapper
public PrefixFileMapper()
-
-
Method Details
-
getMappedFileName
Description copied from class:AbstractFileMapper
Checks the input and returns it without modifications.- Specified by:
getMappedFileName
in interfaceFileMapper
- Overrides:
getMappedFileName
in classAbstractFileMapper
- Parameters:
name
- The source name.- Returns:
- The target name.
-
getPrefix
Returns the prefix to add. -
setPrefix
Sets the prefix to add. -
getMappedFileName
Performs the mapping of a file name by adding a prefix.
-