public class PrefixFileMapper extends AbstractFileMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
ROLE_HINT
The merge mappers role-hint: "prefix".
|
DEFAULT_ROLE_HINT, ROLE| Constructor and Description |
|---|
PrefixFileMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMappedFileName(String name)
Checks the input and returns it without modifications.
|
static String |
getMappedFileName(String prefix,
String name)
Performs the mapping of a file name by adding a prefix.
|
String |
getPrefix()
Returns the prefix to add.
|
void |
setPrefix(String prefix)
Sets the prefix to add.
|
public static final String ROLE_HINT
public String getMappedFileName(String name)
AbstractFileMappergetMappedFileName in interface FileMappergetMappedFileName in class AbstractFileMappername - The source name.public String getPrefix()
public void setPrefix(String prefix)
Copyright © 2001-2014 Codehaus. All Rights Reserved.