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 AbstractFileMapperA 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 StringgetMappedFileName(String pName)Checks the input and returns it without modifications.StringgetTargetName()Returns the merge mappers target name.voidsetTargetName(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:AbstractFileMapperChecks the input and returns it without modifications.- Specified by:
getMappedFileNamein interfaceFileMapper- Overrides:
getMappedFileNamein classAbstractFileMapper- Parameters:
pName- The source name.- Returns:
- The target name.
-
-