Class IdentityMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- org.codehaus.plexus.components.io.filemappers.IdentityMapper
-
- All Implemented Interfaces:
FileMapper
public class IdentityMapper extends AbstractFileMapper
Default implementation ofFileMapper
, which performs the identity mapping: All names are left unchanged.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE_HINT
The identity mappers role-hint: "identity".-
Fields inherited from interface org.codehaus.plexus.components.io.filemappers.FileMapper
DEFAULT_ROLE_HINT, ROLE
-
-
Constructor Summary
Constructors Constructor Description IdentityMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMappedFileName(java.lang.String pName)
Checks the input and returns it without modifications.
-
-
-
Field Detail
-
ROLE_HINT
public static final java.lang.String ROLE_HINT
The identity mappers role-hint: "identity".- See Also:
- Constant Field Values
-
-
Method Detail
-
getMappedFileName
@Nonnull public java.lang.String getMappedFileName(@Nonnull java.lang.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.
-
-