org.apache.commons.betwixt.strategy
Class CapitalizeNameMapper

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.CapitalizeNameMapper
All Implemented Interfaces:
NameMapper

public class CapitalizeNameMapper
extends java.lang.Object
implements NameMapper

A beanmapper which converts a type to start with an uppercase. So eg elementName should return ElementName

Version:
$Id: CapitalizeNameMapper.java 471234 2006-11-04 17:28:08Z rdonkin $
Author:
Martin van den Bemt

Constructor Summary
CapitalizeNameMapper()
           
 
Method Summary
 java.lang.String mapTypeToElementName(java.lang.String typeName)
          Capitalize first letter of type name.
 java.lang.String toString()
          Outputs a brief description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapitalizeNameMapper

public CapitalizeNameMapper()
Method Detail

mapTypeToElementName

public java.lang.String mapTypeToElementName(java.lang.String typeName)
Capitalize first letter of type name.

Specified by:
mapTypeToElementName in interface NameMapper
Parameters:
typeName - the string to convert
Returns:
typeName after first letter has been converted to upper case

toString

public java.lang.String toString()
Outputs a brief description.

Overrides:
toString in class java.lang.Object
Since:
0.8


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.