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()
public String getMappedFileName(String pName)
AbstractFileMappergetMappedFileName in interface FileMappergetMappedFileName in class AbstractFileMapperpName - The source name.Copyright © 2001-2014 Codehaus. All Rights Reserved.