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
@Nonnull public String getMappedFileName(@Nonnull String name)
AbstractFileMapper
getMappedFileName
in interface FileMapper
getMappedFileName
in class AbstractFileMapper
name
- The source name.public String getPrefix()
public void setPrefix(String prefix)
Copyright © 2001–2017 Codehaus Plexus. All rights reserved.