public class HungarianMapper extends Object implements FileNameMapper
Constructor and Description |
---|
HungarianMapper() |
Modifier and Type | Method and Description |
---|---|
String[] |
mapFileName(String sourceFileName)
Returns an array containing the target filename(s) for the given source
file.
|
void |
setFrom(String from)
Sets the from part of the transformation rule.
|
void |
setTo(String to)
Sets the to part of the transformation rule.
|
public void setFrom(String from)
setFrom
in interface FileNameMapper
from
- the from part of the transformation rule.public void setTo(String to)
setTo
in interface FileNameMapper
to
- the to part of the transformation rule.public String[] mapFileName(String sourceFileName) throws IllegalArgumentException
The implementation of this method checks if the name of the file identified by the specified path starts with a lowercase letter. If it does, then it returns the name with the first character converted to an uppercase character.
mapFileName
in interface FileNameMapper
sourceFileName
- the path to the file, should not be null
.null
.IllegalArgumentException
- if sourceFileName == null
.See http://www.xins.org/.