org.apache.tools.ant.util

Class ContainerMapper

public abstract class ContainerMapper extends Object implements FileNameMapper

A FileNameMapper that contains other FileNameMappers.

See Also: FileNameMapper

Method Summary
voidadd(FileNameMapper fileNameMapper)
Add a FileNameMapper.
voidaddConfiguredMapper(Mapper mapper)
Add a Mapper.
protected booleancontains(FileNameMapper fileNameMapper)
Return true if this ContainerMapper or any of its sub-elements contains the specified FileNameMapper.
ListgetMappers()
Get the List of FileNameMappers.
voidsetFrom(String ignore)
Empty implementation.
voidsetTo(String ignore)
Empty implementation.

Method Detail

add

public void add(FileNameMapper fileNameMapper)
Add a FileNameMapper.

Parameters: fileNameMapper a FileNameMapper.

UNKNOWN: IllegalArgumentException if attempting to add this ContainerMapper to itself, or if the specified FileNameMapper is itself a ContainerMapper that contains this ContainerMapper.

addConfiguredMapper

public void addConfiguredMapper(Mapper mapper)
Add a Mapper.

Parameters: 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.

Parameters: fileNameMapper the FileNameMapper to search for.

Returns: boolean.

getMappers

public List getMappers()
Get the List of FileNameMappers.

Returns: List.

setFrom

public void setFrom(String ignore)
Empty implementation.

setTo

public void setTo(String ignore)
Empty implementation.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.