public static Set < String > getOvercastPropertyNames ( final String path ) { Config overcastConfig = getOvercastConfig ( ) ; if ( ! overcastConfig . hasPath ( path ) ) { return new HashSet <> ( ) ; } Config cfg = overcastConfig . getConfig ( path ) ; Set < String > result = new HashSet <> ( ) ; for ( Map . Entry < String , ConfigValue > e : cfg . entrySet ( ) ) { result . add ( ConfigUtil . splitPath ( e . getKey ( ) ) . get ( 0 ) ) ; } return result ; }
Get set of property names directly below path .