org.apache.tools.ant.util
Class ContainerMapper
java.lang.Object
org.apache.tools.ant.util.ContainerMapper
- FileNameMapper
public abstract class ContainerMapper
extends java.lang.Object
A FileNameMapper
that contains
other FileNameMapper
s.
add
public void add(FileNameMapper fileNameMapper)
Add a FileNameMapper
.
fileNameMapper
- a FileNameMapper
.
addConfigured
public void addConfigured(FileNameMapper fileNameMapper)
An add configured version of the add method.
This class used to contain an add method and an
addConfiguredMapper method. Dur to ordering,
the add method was always called first. This
addConfigued method has been added to allow
chaining to work correctly.
fileNameMapper
- a FileNameMapper
.
addConfiguredMapper
public void addConfiguredMapper(Mapper mapper)
Add a Mapper
.
mapper
- the Mapper
to add.
contains
protected boolean contains(FileNameMapper fileNameMapper)
Return true
if this ContainerMapper
or any of
its sub-elements contains the specified FileNameMapper
.
fileNameMapper
- the FileNameMapper
to search for.
getMappers
public List getMappers()
Get the List
of FileNameMapper
s.