Enum FilterMatcher.FilterType

  • All Implemented Interfaces:
    Serializable, Comparable<FilterMatcher.FilterType>
    Enclosing class:
    FilterMatcher

    public static enum FilterMatcher.FilterType
    extends Enum<FilterMatcher.FilterType>
    Describes quality of the filtering. Depending on the context, this can either refer to disabled or to hidden primitives. The distinction is necessary, because untagged nodes should only "inherit" their filter property from the parent way, when the parent way is hidden (or disabled) "explicitly" (i.e. by a non-inverted filter). This way, filters like ["child type:way", inverted, Add] show the untagged way nodes, as intended. This information is only needed for ways and relations, so nodes are either NOT_FILTERED or PASSIV.
    • Method Detail

      • values

        public static FilterMatcher.FilterType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FilterMatcher.FilterType c : FilterMatcher.FilterType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FilterMatcher.FilterType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null