org.codehaus.plexus.components.io.filemappers
Interface FileMapper

All Known Implementing Classes:
AbstractFileMapper, FileExtensionMapper, FlattenFileMapper, IdentityMapper, MergeFileMapper, PrefixFileMapper, RegExpFileMapper

public interface FileMapper

Interface of a component, which may be used to map file names.


Field Summary
static String DEFAULT_ROLE_HINT
          The default role-hint: "default".
static String ROLE
          Role used to register component implementations with the container.
 
Method Summary
 String getMappedFileName(String pName)
          Maps the given source name to a target name.
 

Field Detail

ROLE

static final String ROLE
Role used to register component implementations with the container.


DEFAULT_ROLE_HINT

static final String DEFAULT_ROLE_HINT
The default role-hint: "default".

See Also:
Constant Field Values
Method Detail

getMappedFileName

String getMappedFileName(String pName)
Maps the given source name to a target name.

Parameters:
pName - The source name.
Returns:
The target name.
Throws:
IllegalArgumentException - The source name is null or empty.


Copyright © 2001-2012 Codehaus. All Rights Reserved.