Package org.openstreetmap.josm.data.osm
Enum FilterMatcher.FilterType
- java.lang.Object
-
- java.lang.Enum<FilterMatcher.FilterType>
-
- org.openstreetmap.josm.data.osm.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 eitherNOT_FILTERED
orPASSIV
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPLICIT
at least one non-inverted filter appliesNOT_FILTERED
no filter appliesPASSIV
at least one filter applies, but they are all inverted filters
-
Constructor Summary
Constructors Modifier Constructor Description private
FilterType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterMatcher.FilterType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FilterMatcher.FilterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_FILTERED
public static final FilterMatcher.FilterType NOT_FILTERED
no filter applies
-
EXPLICIT
public static final FilterMatcher.FilterType EXPLICIT
at least one non-inverted filter applies
-
PASSIV
public static final FilterMatcher.FilterType PASSIV
at least one filter applies, but they are all inverted filters
-
-
Constructor Detail
-
FilterType
private FilterType()
-
-
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 nameNullPointerException
- if the argument is null
-
-