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: 438373 $
- Author:
- James Strachan
Method Summary |
String |
mapTypeToElementName(String typeName)
This implementation returns the parameter passed after
deleting any characters which the XML specification does not allow
in element names. |
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 after
deleting any characters which the XML specification does not allow
in element names.
- Specified by:
mapTypeToElementName
in interface NameMapper
- Parameters:
typeName
- the string to convert
- Returns:
- the typeName parameter without modification
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.