Class IdentityMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.IdentityMapper
-
- All Implemented Interfaces:
FileMapper
- Direct Known Subclasses:
DefaultFileMapper
@Named("identity") public class IdentityMapper extends AbstractFileMapper
Default implementation ofFileMapper
, which performs the identity mapping: All names are left unchanged.
-
-
Constructor Summary
Constructors Constructor Description IdentityMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMappedFileName(String pName)
Checks the input and returns it without modifications.
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The identity mappers role-hint: "identity".- See Also:
- Constant Field Values
-
-
Method Detail
-
getMappedFileName
@Nonnull public String getMappedFileName(@Nonnull String pName)
Description copied from class:AbstractFileMapper
Checks the input and returns it without modifications.- Specified by:
getMappedFileName
in interfaceFileMapper
- Overrides:
getMappedFileName
in classAbstractFileMapper
- Parameters:
pName
- The source name.- Returns:
- The target name.
-
-