org.apache.tools.ant.types.mappers

Class FilterMapper

public class FilterMapper extends FilterChain implements FileNameMapper

This is a FileNameMapper based on a FilterChain.
Method Summary
String[]mapFileName(String sourceFileName)
Return the result of the filters on the sourcefilename.
voidsetFrom(String from)
From attribute not supported.
voidsetTo(String to)
From attribute not supported.

Method Detail

mapFileName

public String[] mapFileName(String sourceFileName)
Return the result of the filters on the sourcefilename.

Parameters: sourceFileName the filename to map

Returns: a one-element array of converted filenames, or null if the filterchain returns an empty string.

setFrom

public void setFrom(String from)
From attribute not supported.

Parameters: from a string

Throws: BuildException always

setTo

public void setTo(String to)
From attribute not supported.

Parameters: to a string

Throws: BuildException always

Copyright