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 booleanapplies(Environment env)Checks if the condition applies in the given MapCSSEnvironment.java.lang.StringtoString()
-
-
-
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:ConditionChecks if the condition applies in the given MapCSSEnvironment.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-