public static Map < String , PathData > imports ( Configurer configurer ) { Check . notNull ( configurer ) ; final Xml root = configurer . getRoot ( ) ; if ( ! root . hasChild ( NODE_PATHFINDABLE ) ) { return Collections . emptyMap ( ) ; } final Map < String , PathData > categories = new HashMap <> ( 0 ) ; final Xml nodePathfindable = root . getChild ( NODE_PATHFINDABLE ) ; for ( final Xml nodePath : nodePathfindable . getChildren ( NODE_PATH ) ) { final PathData data = importPathData ( nodePath ) ; categories . put ( data . getName ( ) , data ) ; } return categories ; }
Import the pathfindable data from node .