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

java.lang.Object
  extended byorg.codehaus.plexus.components.io.filemappers.IdentityMapper
      extended byorg.codehaus.plexus.components.io.filemappers.FlattenFileMapper
All Implemented Interfaces:
FileMapper

public class FlattenFileMapper
extends IdentityMapper

Implementation of a flattening file mapper: Removes all directory parts.


Field Summary
static java.lang.String ROLE_HINT
          The flatten file mappers role-hint: "flatten".
 
Fields inherited from interface org.codehaus.plexus.components.io.filemappers.FileMapper
DEFAULT_ROLE_HINT, ROLE
 
Constructor Summary
FlattenFileMapper()
           
 
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 flatten file mappers role-hint: "flatten".

See Also:
Constant Field Values
Constructor Detail

FlattenFileMapper

public FlattenFileMapper()
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
Overrides:
getMappedFileName in class IdentityMapper


Copyright © 2001-2009 Codehaus. All Rights Reserved.