public abstract class ContainerMapper extends Object implements FileNameMapper
FileNameMapper
that contains
other FileNameMapper
s.FileNameMapper
Constructor and Description |
---|
ContainerMapper() |
Modifier and Type | Method and Description |
---|---|
void |
add(FileNameMapper fileNameMapper)
Add a
FileNameMapper . |
void |
addConfigured(FileNameMapper fileNameMapper)
An add configured version of the add method.
|
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 FileNameMapper s. |
void |
setFrom(String ignore)
Empty implementation.
|
void |
setTo(String ignore)
Empty implementation.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapFileName
public void add(FileNameMapper fileNameMapper)
FileNameMapper
.fileNameMapper
- a FileNameMapper
.IllegalArgumentException
- if attempting to add this
ContainerMapper
to itself, or if the specified
FileNameMapper
is itself a ContainerMapper
that contains this ContainerMapper
.public void addConfigured(FileNameMapper fileNameMapper)
fileNameMapper
- a FileNameMapper
.public void addConfiguredMapper(Mapper mapper)
Mapper
.mapper
- the Mapper
to add.protected boolean contains(FileNameMapper fileNameMapper)
true
if this ContainerMapper
or any of
its sub-elements contains the specified FileNameMapper
.fileNameMapper
- the FileNameMapper
to search for.boolean
.public List getMappers()
List
of FileNameMapper
s.List
.public void setFrom(String ignore)
setFrom
in interface FileNameMapper
ignore
- ignored.public void setTo(String ignore)
setTo
in interface FileNameMapper
ignore
- ignored.