Class MergeFileMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.MergeFileMapper
-
- All Implemented Interfaces:
FileMapper
@Named("merge") public class MergeFileMapper extends AbstractFileMapper
A file mapper, which maps to a constant target name.
-
-
Constructor Summary
Constructors Constructor Description MergeFileMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMappedFileName(String pName)
Checks the input and returns it without modifications.String
getTargetName()
Returns the merge mappers target name.void
setTargetName(String pName)
Sets the merge mappers target name.
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The merge mappers role-hint: "merge".- See Also:
- Constant Field Values
-
-
Method Detail
-
setTargetName
public void setTargetName(String pName)
Sets the merge mappers target name.- Throws:
IllegalArgumentException
- The target name is null or empty.
-
getTargetName
public String getTargetName()
Returns the merge mappers target name.- Throws:
IllegalArgumentException
- The target name is null or empty.
-
getMappedFileName
@Nonnull public String getMappedFileName(@Nonnull String pName)
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.
-
-