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 java.lang.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.Opop(package private) java.lang.Stringrole
-
Constructor Summary
Constructors Constructor Description RoleCondition(java.lang.String role, ConditionFactory.Op op)Constructs a newRoleCondition.
-
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.
-
-
-
Field Detail
-
role
final java.lang.String role
-
op
final ConditionFactory.Op op
-
-
Constructor Detail
-
RoleCondition
public RoleCondition(java.lang.String role, ConditionFactory.Op op)
Constructs a newRoleCondition.- Parameters:
role- roleop- operation
-
-
Method Detail
-
applies
public boolean applies(Environment env)
Description copied from interface:ConditionChecks if the condition applies in the given MapCSSEnvironment.
-
-