public PropertyDescriptor [ ] getAllPropertyDescriptors ( ) { if ( allProperties == null ) { PropertyDescriptor [ ] allProperties = new PropertyDescriptor [ propertyDescriptors . size ( ) ] ; int index = 0 ; for ( PropertyDescriptor propertyDescriptor : propertyDescriptors . values ( ) ) { allProperties [ index ] = propertyDescriptor ; index ++ ; } Arrays . sort ( allProperties , new Comparator < PropertyDescriptor > ( ) { @ Override public int compare ( final PropertyDescriptor pd1 , final PropertyDescriptor pd2 ) { return pd1 . getName ( ) . compareTo ( pd2 . getName ( ) ) ; } } ) ; this . allProperties = allProperties ; } return allProperties ; }
Returns all property descriptors . Properties are sorted by name .