org.apache.tools.ant.types.mappers

Class FilterMapper

Implemented Interfaces:
Cloneable, FileNameMapper

public class FilterMapper
extends FilterChain
implements FileNameMapper

This is a FileNameMapper based on a FilterChain.

Field Summary

Fields inherited from class org.apache.tools.ant.types.DataType

checked, description, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

String[]
mapFileName(String sourceFileName)
Return the result of the filters on the sourcefilename.
void
setFrom(String from)
From attribute not supported.
void
setTo(String to)
From attribute not supported.

Methods inherited from class org.apache.tools.ant.types.FilterChain

add, addClassConstants, addContainsRegex, addDeleteCharacters, addEscapeUnicode, addExpandProperties, addFilterReader, addHeadFilter, addIgnoreBlank, addLineContains, addLineContainsRegExp, addPrefixLines, addReplaceRegex, addReplaceString, addReplaceTokens, addStripJavaComments, addStripLineBreaks, addStripLineComments, addTabsToSpaces, addTailFilter, addTokenFilter, addTrim, getFilterReaders, setRefid

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

mapFileName

public String[] mapFileName(String sourceFileName)
Return the result of the filters on the sourcefilename.
Specified by:
mapFileName in interface FileNameMapper

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.
Specified by:
setFrom in interface FileNameMapper

Parameters:
from - a string


setTo

public void setTo(String to)
From attribute not supported.
Specified by:
setTo in interface FileNameMapper

Parameters:
to - a string


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.