Class BrowserRefTarget
-
- All Implemented Interfaces:
public final class BrowserRefTargetAn element on the page, identified by a reference from a prior
read_pageorfindresult. References are scoped to the tab that produced them and become stale after navigation or a major re-render.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserRefTarget.BuilderA builder for BrowserRefTarget.
-
Method Summary
Modifier and Type Method Description final Stringref()An element reference (e.g. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("ref")final JsonField<String>_ref()Returns the raw JSON value of ref. final Map<String, JsonValue>_additionalProperties()final BrowserRefTarget.BuildertoBuilder()final BrowserRefTargetvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserRefTarget.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserRefTarget. final static BrowserRefTargetof(String ref)Returns an immutable instance of BrowserRefTarget with the required ref set to the given value. -
-
Method Detail
-
ref
final String ref()
An element reference (e.g. "ref_7") returned by a prior
read_pageorfindresult.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("ref")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserRefTarget.Builder toBuilder()
-
validate
final BrowserRefTarget validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BrowserRefTarget.Builder builder()
Returns a mutable builder for constructing an instance of BrowserRefTarget.
The following fields are required:
.ref()
-
of
final static BrowserRefTarget of(String ref)
Returns an immutable instance of BrowserRefTarget with the required ref set to the given value.
-
-
-
-