org.apache.tools.ant.util

Class ContainerMapper

Implemented Interfaces:
FileNameMapper
Known Direct Subclasses:
ChainedMapper, CompositeMapper

public abstract class ContainerMapper
extends java.lang.Object
implements FileNameMapper

A FileNameMapper that contains other FileNameMappers.
See Also:
FileNameMapper

Method Summary

void
add(FileNameMapper fileNameMapper)
Add a FileNameMapper.
void
addConfiguredMapper(Mapper mapper)
Add a Mapper.
protected boolean
contains(FileNameMapper fileNameMapper)
Return true if this ContainerMapper or any of its sub-elements contains the specified FileNameMapper.
List
getMappers()
Get the List of FileNameMappers.
void
setFrom(String ignore)
Empty implementation.
void
setTo(String ignore)
Empty implementation.

Method Details

add

public void add(FileNameMapper fileNameMapper)
Add a FileNameMapper.
Parameters:
fileNameMapper - a FileNameMapper.

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

setTo

public void setTo(String ignore)
Empty implementation.
Specified by:
setTo in interface FileNameMapper

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.