org.openstreetmap.josm.gui.mappaint.mapcss
Class Condition.KeyCondition
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.Condition
org.openstreetmap.josm.gui.mappaint.mapcss.Condition.KeyCondition
- Enclosing class:
- Condition
public static class Condition.KeyCondition
- extends Condition
KeyCondition represent one of the following conditions in either the link or the
primitive context:
["a label"] PRIMITIVE: the primitive has a tag "a label"
LINK: the parent is a relation and it has at least one member with the role
"a label" referring to the child
[!"a label"] PRIMITIVE: the primitive doesn't have a tag "a label"
LINK: the parent is a relation but doesn't have a member with the role
"a label" referring to the child
["a label"?] PRIMITIVE: the primitive has a tag "a label" whose value evaluates to a true-value
LINK: not supported
Constructor Summary |
Condition.KeyCondition(java.lang.String label,
boolean exclamationMarkPresent,
boolean questionMarkPresent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
label
private java.lang.String label
exclamationMarkPresent
private boolean exclamationMarkPresent
questionMarkPresent
private boolean questionMarkPresent
Condition.KeyCondition
public Condition.KeyCondition(java.lang.String label,
boolean exclamationMarkPresent,
boolean questionMarkPresent)
- Parameters:
label
- exclamationMarkPresent
- questionMarkPresent
-
applies
public boolean applies(Environment e)
- Specified by:
applies
in class Condition
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
JOSM