org.apache.commons.betwixt.strategy
Interface NameMapper

All Known Implementing Classes:
CapitalizeNameMapper, DecapitalizeNameMapper, DefaultNameMapper, HyphenatedNameMapper

public interface NameMapper

A plugin Strategy pattern for converting java type names into element names.

Version:
$Revision: 1.3 $
Author:
James Strachan

Method Summary
 String mapTypeToElementName(String typeName)
          Convert the given bean or property name to name for use in xml (as an element or an attribute nqame).
 

Method Detail

mapTypeToElementName

public String mapTypeToElementName(String typeName)
Convert the given bean or property name to name for use in xml (as an element or an attribute nqame).

Parameters:
typeName - the string to convert
Returns:
the element name for the given bean type name