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

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

public class IdentityMapper
extends java.lang.Object
implements FileMapper

Default implementation of FileMapper, which performs the identity mapping: All names are left unchanged.


Field Summary
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
IdentityMapper()
           
 
Method Summary
 java.lang.String getMappedFileName(java.lang.String pName)
          Maps the given source name to a target name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_HINT

public static final java.lang.String ROLE_HINT
The identity mappers role-hint: "identity".

See Also:
Constant Field Values
Constructor Detail

IdentityMapper

public IdentityMapper()
Method Detail

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
Parameters:
pName - The source name.
Returns:
The target name.


Copyright © 2001-2008 Codehaus. All Rights Reserved.