Class AbstractFileMapper
- java.lang.Object
-
- org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
-
- All Implemented Interfaces:
FileMapper
- Direct Known Subclasses:
FileExtensionMapper
,FlattenFileMapper
,IdentityMapper
,MergeFileMapper
,PrefixFileMapper
,RegExpFileMapper
,SuffixFileMapper
public abstract class AbstractFileMapper extends java.lang.Object implements FileMapper
Abstract base class for deriving file mappers. It is recommended to use this class, if your implement your own file mappers, as this might allow to extend the FileMapper interface later on without loosing upwards compatibility.
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.components.io.filemappers.FileMapper
DEFAULT_ROLE_HINT, ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractFileMapper()
-
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.
-
-
-
Method Detail
-
getMappedFileName
@Nonnull public java.lang.String getMappedFileName(@Nonnull java.lang.String pName)
Checks the input and returns it without modifications.- Specified by:
getMappedFileName
in interfaceFileMapper
- Parameters:
pName
- The source name.- Returns:
- The target name.
-
-