Just read the Java Bean spec 1.01 which includes the decapitalize()
function which states:
Utility method to take a string and convert it to normal Java variable name capitalization. This normally means converting the first character from upper case to lower case, but in the (unusual) special case when there is more than one character and both the first and second characters are upper case, we leave it alone.
So if I want to write a getter for a Java Bean property named qValue
, does that mean I should use getqValue()
rather than getQValue()
?