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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMappedFileName(String pName) Checks the input and returns it without modifications.Returns the target files extension.voidsetTargetExtension(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:AbstractFileMapperChecks the input and returns it without modifications.- Specified by:
getMappedFileNamein interfaceFileMapper- Overrides:
getMappedFileNamein classAbstractFileMapper- Parameters:
pName- The source name.- Returns:
- The target name.
-