Class ConditionFactory.RoleCondition
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.RoleCondition
-
- All Implemented Interfaces:
Condition
- Enclosing class:
- ConditionFactory
public static class ConditionFactory.RoleCondition extends Object implements Condition
Role condition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition
Condition.Context, Condition.TagCondition
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConditionFactory.Op
op
(package private) String
role
-
Constructor Summary
Constructors Constructor Description RoleCondition(String role, ConditionFactory.Op op)
Constructs a newRoleCondition
.
-
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
.
-
-
-
Field Detail
-
op
final ConditionFactory.Op op
-
-
Constructor Detail
-
RoleCondition
public RoleCondition(String role, ConditionFactory.Op op)
Constructs a newRoleCondition
.- Parameters:
role
- roleop
- operation
-
-
Method Detail
-
applies
public boolean applies(Environment env)
Description copied from interface:Condition
Checks if the condition applies in the given MapCSSEnvironment
.
-
-