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
A 
FileNameMapper that contains
 other FileNameMappers.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(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.Get theListofFileNameMappers.voidEmpty implementation.voidEmpty implementation.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.util.FileNameMappermapFileName
- 
Constructor Details- 
ContainerMapperpublic ContainerMapper()
 
- 
- 
Method Details- 
addConfiguredMapperAdd aMapper.- Parameters:
- mapper- the- Mapperto add.
 
- 
addConfiguredAn 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- a- FileNameMapper.
 
- 
addAdd aFileNameMapper.- Parameters:
- fileNameMapper- a- FileNameMapper.
- Throws:
- IllegalArgumentException- if attempting to add this- ContainerMapperto itself, or if the specified- FileNameMapperis itself a- ContainerMapperthat contains this- ContainerMapper.
 
- 
containsReturntrueif thisContainerMapperor any of its sub-elements contains the specifiedFileNameMapper.- Parameters:
- fileNameMapper- the- FileNameMapperto search for.
- Returns:
- boolean.
 
- 
getMappers
- 
setFromEmpty implementation.- Specified by:
- setFromin interface- FileNameMapper
- Parameters:
- ignore- ignored.
 
- 
setToEmpty implementation.- Specified by:
- setToin interface- FileNameMapper
- Parameters:
- ignore- ignored.
 
 
-