org.apache.commons.betwixt.strategy
Class DefaultNameMapper

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.DefaultNameMapper
All Implemented Interfaces:
NameMapper

public class DefaultNameMapper
extends Object
implements NameMapper

A default implementation of the name mapper. This mapper simply returns the unmodified type name.

For example, PropertyName would be converted to PropertyName.

Version:
$Revision: 1.3 $
Author:
James Strachan

Constructor Summary
DefaultNameMapper()
           
 
Method Summary
 String mapTypeToElementName(String typeName)
          This implementation returns the parameter passed in without modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNameMapper

public DefaultNameMapper()
Method Detail

mapTypeToElementName

public String mapTypeToElementName(String typeName)
This implementation returns the parameter passed in without modification.

Specified by:
mapTypeToElementName in interface NameMapper
Parameters:
typeName - the string to convert
Returns:
the typeName parameter without modification