org.apache.commons.betwixt.strategy
Interface NameMapper
- All Known Implementing Classes:
- CapitalizeNameMapper, DecapitalizeNameMapper, HyphenatedNameMapper, DefaultNameMapper
- public interface NameMapper
A plugin Strategy pattern for converting java type names into element names.
- Version:
- $Revision: 1.3 $
- 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 nqame). |
mapTypeToElementName
public 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 nqame).
- Parameters:
typeName
- the string to convert- Returns:
- the element name for the given bean type name
Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.