protected static List < PropertyDescriptor > getWriteableProperties ( Class cls ) { BeanWrapper beanWrapper = new BeanWrapperImpl ( cls ) ; List < PropertyDescriptor > writeableProperties = new ArrayList < PropertyDescriptor > ( ) ; PropertyDescriptor [ ] props = beanWrapper . getPropertyDescriptors ( ) ; for ( PropertyDescriptor prop : props ) { if ( isWriteable ( prop ) ) { writeableProperties . add ( prop ) ; } } return writeableProperties ; }
Returns a list of all writeable properties of a class .