Class MergeFileMapper
java.lang.Object
org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.MergeFileMapper
- All Implemented Interfaces:
FileMapper
A file mapper, which maps to a constant target name.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMappedFileName
(String pName) Checks the input and returns it without modifications.Returns the merge mappers target name.void
setTargetName
(String pName) Sets the merge mappers target name.
-
Field Details
-
ROLE_HINT
The merge mappers role-hint: "merge".- See Also:
-
-
Constructor Details
-
MergeFileMapper
public MergeFileMapper()
-
-
Method Details
-
setTargetName
Sets the merge mappers target name.- Throws:
IllegalArgumentException
- The target name is null or empty.
-
getTargetName
Returns the merge mappers target name.- Throws:
IllegalArgumentException
- The target name is null or empty.
-
getMappedFileName
Description copied from class:AbstractFileMapper
Checks the input and returns it without modifications.- Specified by:
getMappedFileName
in interfaceFileMapper
- Overrides:
getMappedFileName
in classAbstractFileMapper
- Parameters:
pName
- The source name.- Returns:
- The target name.
-