Methods Summary |
---|
public synchronized void | add(FileNameMapper fileNameMapper)Add a FileNameMapper .
if (this == fileNameMapper
|| (fileNameMapper instanceof ContainerMapper
&& ((ContainerMapper) fileNameMapper).contains(this))) {
throw new IllegalArgumentException(
"Circular mapper containment condition detected");
} else {
mappers.add(fileNameMapper);
}
|
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.
add(fileNameMapper);
|
public void | addConfiguredMapper(org.apache.tools.ant.types.Mapper mapper)Add a Mapper .
add(mapper.getImplementation());
|
protected synchronized boolean | contains(FileNameMapper fileNameMapper)Return true if this ContainerMapper or any of
its sub-elements contains the specified FileNameMapper .
boolean foundit = false;
for (Iterator iter = mappers.iterator(); iter.hasNext() && !foundit;) {
FileNameMapper next = (FileNameMapper) (iter.next());
foundit |= (next == fileNameMapper
|| (next instanceof ContainerMapper
&& ((ContainerMapper) next).contains(fileNameMapper)));
}
return foundit;
|
public synchronized java.util.List | getMappers()Get the List of FileNameMapper s.
return Collections.unmodifiableList(mappers);
|
public void | setFrom(java.lang.String ignore)Empty implementation.
//Empty
|
public void | setTo(java.lang.String ignore)Empty implementation.
//Empty
|