org.apache.commons.betwixt.strategy
Class DefaultNameMapper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNameMapper
public DefaultNameMapper()
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