org.apache.commons.betwixt.strategy
Interface NameMapper

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

public interface NameMapper

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

Version:
$Revision: 438373 $
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 qname).
 

Method Detail

mapTypeToElementName

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

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


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.