Class Selector.ChildOrParentSelector

java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector
All Implemented Interfaces:
Selector
Enclosing interface:
Selector

public static class Selector.ChildOrParentSelector extends 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