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
 java.lang.String mapTypeToElementName(java.lang.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

java.lang.String mapTypeToElementName(java.lang.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-2008 The Apache Software Foundation. All Rights Reserved.