org.codehaus.plexus.components.io.filemappers
Class MergeFileMapper
java.lang.Object
org.codehaus.plexus.components.io.filemappers.IdentityMapper
org.codehaus.plexus.components.io.filemappers.MergeFileMapper
- All Implemented Interfaces:
- FileMapper
- public class MergeFileMapper
- extends IdentityMapper
A file mapper, which maps to a constant target name.
Field Summary |
static java.lang.String |
ROLE_HINT
The merge mappers role-hint: "merge". |
Method Summary |
java.lang.String |
getMappedFileName(java.lang.String pName)
Maps the given source name to a target name. |
java.lang.String |
getTargetName()
Returns the merge mappers target name. |
void |
setTargetName(java.lang.String pName)
Sets the merge mappers target name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE_HINT
public static final java.lang.String ROLE_HINT
- The merge mappers role-hint: "merge".
- See Also:
- Constant Field Values
MergeFileMapper
public MergeFileMapper()
setTargetName
public void setTargetName(java.lang.String pName)
- Sets the merge mappers target name.
- Throws:
java.lang.IllegalArgumentException
- The target name is null or empty.
getTargetName
public java.lang.String getTargetName()
- Returns the merge mappers target name.
- Throws:
java.lang.IllegalArgumentException
- The target name is null or empty.
getMappedFileName
public java.lang.String getMappedFileName(java.lang.String pName)
- Description copied from interface:
FileMapper
- Maps the given source name to a target name.
- Specified by:
getMappedFileName
in interface FileMapper
- Overrides:
getMappedFileName
in class IdentityMapper
Copyright © 2001-2009 Codehaus. All Rights Reserved.