|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.ant.HungarianMapper
Apache Ant mapper that change the case of the first character of a filename to upper, if it is a lowercase letter.
Constructor Summary | |
HungarianMapper()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HungarianMapper()
Method Detail |
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
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |