Class ConditionFactory.ClassCondition

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String id
      Class identifier
      (package private) boolean not  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassCondition​(java.lang.String id, boolean not)
      Constructs a new ClassCondition.
    • 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 MapCSS Environment.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition

        applies
    • Field Detail

      • id

        public final java.lang.String id
        Class identifier
      • not

        final boolean not
    • Constructor Detail

      • ClassCondition

        public ClassCondition​(java.lang.String id,
                              boolean not)
        Constructs a new ClassCondition.
        Parameters:
        id - id
        not - negation or not
    • Method Detail

      • applies

        public boolean applies​(Environment env)
        Description copied from interface: Condition
        Checks if the condition applies in the given MapCSS Environment.
        Specified by:
        applies in interface Condition
        Parameters:
        env - The environment to check. May not be null.
        Returns:
        true if the condition applies.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object