java - Get all nodes under YAML path -
i have yaml file looks this:
main: topofhouse: x: 276.4375 y: 71.0 z: -60.5 yaw: -290.7768 pitch: 35.400017 2ndfloor: x: 276.5 y: 67.0 z: -60.5 yaw: -8.626648 pitch: 16.199997 home: x: 276.5 y: 63.0 z: -60.5 yaw: -18.976715 pitch: -32.850002 is there way nodes under main?
to node ids contained in main:
file.getconfigurationsection("main").getkeys(false); output:
set["topofhouse", "2ndfloor", "home"] the configurationsection.getconfigurationsection(string path) method used path on operate.
the configurationsection.getkeys(boolean deep) method node ids within current path set<string>. when deep set true, nodes in children , subchildren too, however, relations between them lost.
Comments
Post a Comment