Class FileExtensionMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.FileExtensionMapper
-
- All Implemented Interfaces:
FileMapper
@Named("fileExtension") public class FileExtensionMapper extends AbstractFileMapperAn implementation ofFileMapper, which changes the files extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE_HINTThe file extension mappers role-hint: "fileExtension".
-
Constructor Summary
Constructors Constructor Description FileExtensionMapper()
-
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.StringgetTargetExtension()Returns the target files extension.voidsetTargetExtension(java.lang.String pTargetExtension)Sets the target files extension.
-
-
-
Field Detail
-
ROLE_HINT
public static final java.lang.String ROLE_HINT
The file extension mappers role-hint: "fileExtension".- See Also:
- Constant Field Values
-
-
Method Detail
-
setTargetExtension
public void setTargetExtension(java.lang.String pTargetExtension)
Sets the target files extension.- Parameters:
pTargetExtension- the target extensions- Throws:
java.lang.IllegalArgumentException- The target extension is null or empty.
-
getTargetExtension
public java.lang.String getTargetExtension()
Returns the target files extension.- Returns:
- The target extension
-
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.
-
-