org.openstreetmap.josm.gui.mappaint.mapcss
Class Condition.KeyCondition

java.lang.Object
  extended by org.openstreetmap.josm.gui.mappaint.mapcss.Condition
      extended by 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
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Condition
Condition.Context, Condition.ExpressionCondition, Condition.IndexCondition, Condition.KeyCondition, Condition.KeyValueCondition, Condition.Op, Condition.PseudoClassCondition, Condition.RoleCondition
 
Field Summary
private  boolean exclamationMarkPresent
           
private  java.lang.String label
           
private  boolean questionMarkPresent
           
 
Fields inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Condition
COMPARISON_OPERATERS
 
Constructor Summary
Condition.KeyCondition(java.lang.String label, boolean exclamationMarkPresent, boolean questionMarkPresent)
           
 
Method Summary
 boolean applies(Environment e)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Condition
create, create, create, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

private java.lang.String label

exclamationMarkPresent

private boolean exclamationMarkPresent

questionMarkPresent

private boolean questionMarkPresent
Constructor Detail

Condition.KeyCondition

public Condition.KeyCondition(java.lang.String label,
                              boolean exclamationMarkPresent,
                              boolean questionMarkPresent)
Parameters:
label -
exclamationMarkPresent -
questionMarkPresent -
Method Detail

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