org.codehaus.plexus.components.io.filemappers
Class AbstractFileMapper

java.lang.Object
  extended by org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
All Implemented Interfaces:
FileMapper
Direct Known Subclasses:
FileExtensionMapper, FlattenFileMapper, IdentityMapper, MergeFileMapper, PrefixFileMapper, RegExpFileMapper

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
AbstractFileMapper()
           
 
Method Summary
 java.lang.String getMappedFileName(java.lang.String pName)
          Checks the input and returns it without modifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileMapper

public AbstractFileMapper()
Method Detail

getMappedFileName

public java.lang.String getMappedFileName(java.lang.String pName)
Checks the input and returns it without modifications.

Specified by:
getMappedFileName in interface FileMapper
Parameters:
pName - The source name.
Returns:
The target name.


Copyright © 2001-2011 Codehaus. All Rights Reserved.