public class FileExtensionMapper extends AbstractFileMapper
FileMapper
, which changes the files extension.Modifier and Type | Field and Description |
---|---|
static String |
ROLE_HINT
The file extension mappers role-hint: "fileExtension".
|
DEFAULT_ROLE_HINT, ROLE
Constructor and Description |
---|
FileExtensionMapper() |
Modifier and Type | Method and Description |
---|---|
String |
getMappedFileName(String pName)
Checks the input and returns it without modifications.
|
String |
getTargetExtension()
Returns the target files extension.
|
void |
setTargetExtension(String pTargetExtension)
Sets the target files extension.
|
public static final String ROLE_HINT
public void setTargetExtension(String pTargetExtension)
pTargetExtension
- the target extensionsIllegalArgumentException
- The target extension is null or empty.public String getTargetExtension()
@Nonnull public String getMappedFileName(@Nonnull String pName)
AbstractFileMapper
getMappedFileName
in interface FileMapper
getMappedFileName
in class AbstractFileMapper
pName
- The source name.Copyright © 2001–2017 Codehaus Plexus. All rights reserved.