Class FileExtensionMapper
java.lang.Object
org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.FileExtensionMapper
- All Implemented Interfaces:
FileMapper
An implementation of
FileMapper
, which changes the files extension.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMappedFileName
(String pName) Checks the input and returns it without modifications.Returns the target files extension.void
setTargetExtension
(String pTargetExtension) Sets the target files extension.
-
Field Details
-
ROLE_HINT
The file extension mappers role-hint: "fileExtension".- See Also:
-
-
Constructor Details
-
FileExtensionMapper
public FileExtensionMapper()
-
-
Method Details
-
setTargetExtension
Sets the target files extension.- Parameters:
pTargetExtension
- the target extensions- Throws:
IllegalArgumentException
- The target extension is null or empty.
-
getTargetExtension
Returns the target files extension.- Returns:
- The target extension
-
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.
-