Code example for Member

Methods: getName

0
	 */ 
	public static String getPropertyName(Member member) {
		String name = null;
 
		if ( member instanceof Field ) {
			name = member.getName();
		} 
 
		if ( member instanceof Method ) {
			String methodName = member.getName();
			if ( methodName.startsWith( "is" ) ) {
				name = Introspector.decapitalize( methodName.substring( 2 ) );
			} 
			else if ( methodName.startsWith( "has" ) ) {
				name = Introspector.decapitalize( methodName.substring( 3 ) );
			} 
			else if ( methodName.startsWith( "get" ) ) {
				name = Introspector.decapitalize( methodName.substring( 3 ) );
			} 
		} 
		return name;