org.openstreetmap.josm.data.osm
Enum FilterMatcher.FilterType

java.lang.Object
  extended by java.lang.Enum<FilterMatcher.FilterType>
      extended by org.openstreetmap.josm.data.osm.FilterMatcher.FilterType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FilterMatcher.FilterType>
Enclosing class:
FilterMatcher

public static enum FilterMatcher.FilterType
extends java.lang.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.


Enum Constant Summary
EXPLICIT
          at least one non-inverted filter applies
NOT_FILTERED
          no filter applies
PASSIV
          at least one filter applies, but they are all inverted filters
 
Method Summary
static FilterMatcher.FilterType valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


JOSM