Class ConditionFactory.ClassCondition
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.ClassCondition
-
- All Implemented Interfaces:
Condition
- Enclosing class:
- ConditionFactory
public static class ConditionFactory.ClassCondition extends java.lang.Object implements Condition
Class condition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition
Condition.Context, Condition.TagCondition
-
-
Constructor Summary
Constructors Constructor Description ClassCondition(java.lang.String id, boolean not)
Constructs a newClassCondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applies(Environment env)
Checks if the condition applies in the given MapCSSEnvironment
.java.lang.String
toString()
-
-
-
Constructor Detail
-
ClassCondition
public ClassCondition(java.lang.String id, boolean not)
Constructs a newClassCondition
.- Parameters:
id
- idnot
- negation or not
-
-
Method Detail
-
applies
public boolean applies(Environment env)
Description copied from interface:Condition
Checks if the condition applies in the given MapCSSEnvironment
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-