Class MapElement.ConfigurationObjectReference

java.lang.Object
com.vaadin.flow.component.map.testbench.MapElement.ConfigurationObjectReference
Direct Known Subclasses:
MapElement.FeatureCollectionReference, MapElement.FeatureReference, MapElement.FillReference, MapElement.GeometryReference, MapElement.IconReference, MapElement.LayerCollectionReference, MapElement.LayerReference, MapElement.MapReference, MapElement.SourceReference, MapElement.StrokeReference, MapElement.StyleReference, MapElement.TextReference, MapElement.ViewReference
Enclosing class:
MapElement

public abstract static class MapElement.ConfigurationObjectReference extends Object
Abstract class for wrapping an in-browser OpenLayers configuration class instance. The class holds a Javascript expression that defines the path to the wrapped object, and provides methods for accessing properties of the object (see get(String, Object...) and related methods). All properties are evaluated lazily using an MapElement.ExpressionExecutor, which takes the path through the configuration hierarchy to that property as Javascript expression and executes it through the Selenium API.
  • Method Details

    • path

      public String path(String path, Object... args)
      Creates a path to a nested object as Javascript expression, based on the current path
      Parameters:
      path - the nested path
      args - variable arguments to be interpolated into the path, works like String.format(String, Object...)
    • get

      public Object get(String path, Object... args)
      Extracts a value from the wrapped object by executing a Selenium Javascript call and returning the result. The return type depends on how Selenium converts the Javascript values into Java types. See the more specific methods for returning values in specific types.
      Parameters:
      path - the nested path to the value to extract
      args - variable arguments to be interpolated into the path, works like String.format(String, Object...)
    • getBoolean

      public boolean getBoolean(String path, Object... args)
    • getString

      public String getString(String path, Object... args)
    • getInt

      public Integer getInt(String path, Object... args)
    • getLong

      public Long getLong(String path, Object... args)
    • getFloat

      public Float getFloat(String path, Object... args)
    • getDouble

      public Double getDouble(String path, Object... args)
    • getTypeName

      public String getTypeName()
    • exists

      public boolean exists()