org.apache.ibatis.abator.internal.util
Class JavaBeansUtil
java.lang.Object
org.apache.ibatis.abator.internal.util.JavaBeansUtil
public class JavaBeansUtil
- extends java.lang.Object
- Author:
- Jeff Butler
Method Summary |
static java.lang.String |
getCamelCaseString(java.lang.String inputString,
boolean firstCharacterUppercase)
|
static java.lang.String |
getGetterMethodName(java.lang.String property)
|
static java.lang.String |
getSetterMethodName(java.lang.String property)
|
static java.lang.String |
getValidPropertyName(java.lang.String inputString)
This method ensures that the specified input string is a valid
Java property name as iBATIS sees it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getGetterMethodName
public static java.lang.String getGetterMethodName(java.lang.String property)
getSetterMethodName
public static java.lang.String getSetterMethodName(java.lang.String property)
getCamelCaseString
public static java.lang.String getCamelCaseString(java.lang.String inputString,
boolean firstCharacterUppercase)
getValidPropertyName
public static java.lang.String getValidPropertyName(java.lang.String inputString)
- This method ensures that the specified input string is a valid
Java property name as iBATIS sees it. The rules are as follows:
1. If the first character is lower case, then OK
2. If the first two characters are upper case, then OK
3. If the first character is upper case, and the second character is lower case,
then the first character should be made lower case
- Parameters:
inputString
-
- Returns:
- the valid poperty name