public static Map < String , PropertyDescriptor > getAllProperties ( GenericType root ) throws IntrospectionException { Map < String , PropertyDescriptor > properties = cPropertiesCache . get ( root ) ; if ( properties == null ) { GenericType rootType = root . getRootType ( ) ; if ( rootType == null ) { rootType = root ; } properties = Collections . unmodifiableMap ( createProperties ( rootType , root ) ) ; cPropertiesCache . put ( root , properties ) ; } return properties ; }
A function that returns a Map of all the available properties on a given class including write - only properties . The properties returned is mostly a superset of those returned from the standard JavaBeans Introspector except pure indexed properties are discarded .