public String getGetAccessor ( TypedElement e , String prefix ) { String capName = toFirstUpper ( e . getName ( ) ) ; if ( prefix != null ) { capName = toFirstUpper ( prefix ) + capName ; } // Note that Boolean object type is not named with is prefix (according // to java beans spec) String result = isBooleanPrimitiveType ( e ) ? "is" + capName : "get" + ( "Class" . equals ( capName ) ? "Class_" : capName ) ; return result ; }
Get - accessor method name of a property according to JavaBeans naming conventions .