Package org.apache.tools.ant.util
Class ContainerMapper
java.lang.Object
org.apache.tools.ant.util.ContainerMapper
- All Implemented Interfaces:
FileNameMapper
- Direct Known Subclasses:
ChainedMapper,CompositeMapper,FirstMatchMapper
public abstract class ContainerMapper extends java.lang.Object implements FileNameMapper
A
FileNameMapper that contains
other FileNameMappers.- See Also:
FileNameMapper
-
Constructor Summary
Constructors Constructor Description ContainerMapper() -
Method Summary
Modifier and Type Method Description voidadd(FileNameMapper fileNameMapper)Add aFileNameMapper.voidaddConfigured(FileNameMapper fileNameMapper)An add configured version of the add method.voidaddConfiguredMapper(Mapper mapper)Add aMapper.protected booleancontains(FileNameMapper fileNameMapper)Returntrueif thisContainerMapperor any of its sub-elements contains the specifiedFileNameMapper.java.util.List<FileNameMapper>getMappers()Get theListofFileNameMappers.voidsetFrom(java.lang.String ignore)Empty implementation.voidsetTo(java.lang.String ignore)Empty implementation.
-
Constructor Details
-
ContainerMapper
public ContainerMapper()
-
-
Method Details
-
addConfiguredMapper
Add aMapper.- Parameters:
mapper- theMapperto add.
-
addConfigured
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 addConfigured method has been added to allow chaining to work correctly.- Parameters:
fileNameMapper- aFileNameMapper.
-
add
Add aFileNameMapper.- Parameters:
fileNameMapper- aFileNameMapper.- Throws:
java.lang.IllegalArgumentException- if attempting to add thisContainerMapperto itself, or if the specifiedFileNameMapperis itself aContainerMapperthat contains thisContainerMapper.
-
contains
Returntrueif thisContainerMapperor any of its sub-elements contains the specifiedFileNameMapper.- Parameters:
fileNameMapper- theFileNameMapperto search for.- Returns:
boolean.
-
getMappers
Get theListofFileNameMappers.- Returns:
List.
-
setFrom
public void setFrom(java.lang.String ignore)Empty implementation.- Specified by:
setFromin interfaceFileNameMapper- Parameters:
ignore- ignored.
-
setTo
public void setTo(java.lang.String ignore)Empty implementation.- Specified by:
setToin interfaceFileNameMapper- Parameters:
ignore- ignored.
-