Class MapElement.ConfigurationObjectReference
- java.lang.Object
-
- com.vaadin.flow.component.map.testbench.MapElement.ConfigurationObjectReference
-
- Direct Known Subclasses:
MapElement.FeatureCollectionReference,MapElement.FeatureReference,MapElement.GeometryReference,MapElement.IconReference,MapElement.LayerCollectionReference,MapElement.LayerReference,MapElement.MapReference,MapElement.SourceReference,MapElement.StyleReference,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 (seeget(String, Object...)and related methods). All properties are evaluated lazily using anMapElement.ExpressionExecutor, which takes the path through the configuration hierarchy to that property as Javascript expression and executes it through the Selenium API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Objectget(String path, Object... args)Extracts a value from the wrapped object by executing a Selenium Javascript call and returning the result.booleangetBoolean(String path, Object... args)DoublegetDouble(String path, Object... args)FloatgetFloat(String path, Object... args)IntegergetInt(String path, Object... args)LonggetLong(String path, Object... args)StringgetString(String path, Object... args)StringgetTypeName()Stringpath(String path, Object... args)Creates a path to a nested object as Javascript expression, based on the current path
-
-
-
Method Detail
-
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 pathargs- variable arguments to be interpolated into the path, works likeString.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 extractargs- variable arguments to be interpolated into the path, works likeString.format(String, Object...)
-
getTypeName
public String getTypeName()
-
exists
public boolean exists()
-
-