Class Selector.ChildOrParentSelector

  • All Implemented Interfaces:
    Selector
    Enclosing interface:
    Selector

    public static class Selector.ChildOrParentSelector
    extends java.lang.Object
    implements Selector

    Represents a child selector or a parent selector.

    In addition to the standard CSS notation for child selectors, JOSM also supports an "inverse" notation:

        selector_a > selector_b { ... }       // the standard notation (child selector)
        relation[type=route] > way { ... }    // example (all ways of a route)
    
        selector_a < selector_b { ... }       // the inverse notation (parent selector)
        node[traffic_calming] < way { ... }   // example (way that has a traffic calming node)
     

    Child: see wiki
    Parent: see wiki