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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE_HINTThe merge mappers role-hint: "merge".
-
Constructor Summary
Constructors Constructor Description MergeFileMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMappedFileName(java.lang.String pName)Checks the input and returns it without modifications.java.lang.StringgetTargetName()Returns the merge mappers target name.voidsetTargetName(java.lang.String pName)Sets the merge mappers target name.
-
-
-
Field Detail
-
ROLE_HINT
public static final java.lang.String ROLE_HINT
The merge mappers role-hint: "merge".- See Also:
- Constant Field Values
-
-
Method Detail
-
setTargetName
public void setTargetName(java.lang.String pName)
Sets the merge mappers target name.- Throws:
java.lang.IllegalArgumentException- The target name is null or empty.
-
getTargetName
public java.lang.String getTargetName()
Returns the merge mappers target name.- Throws:
java.lang.IllegalArgumentException- The target name is null or empty.
-
getMappedFileName
@Nonnull public java.lang.String getMappedFileName(@Nonnull java.lang.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.
-
-