Package Torello.Browser.JavaScriptAPI
Class RunTime.PropertyDescriptor
- java.lang.Object
-
- Torello.Browser.BaseType<RunTime.PropertyDescriptor>
-
- Torello.Browser.JavaScriptAPI.RunTime.PropertyDescriptor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- RunTime
public static class RunTime.PropertyDescriptor extends BaseType<RunTime.PropertyDescriptor> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theRunTimedomain, which may be found within theJavaScriptAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Object property descriptor.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/JavaScriptAPI/RunTime.java
- Open New Browser-Tab: Torello/Browser/JavaScriptAPI/RunTime.java
File Size: 4,115 Bytes Line Count: 109 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: RunTime$$PropertyDescriptor$$.java
- Open New Browser-Tab: RunTime$$PropertyDescriptor$$.java
File Size: 12,738 Bytes Line Count: 311 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description booleanconfigurableTrue if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.booleanenumerableTrue if this property shows up during enumeration of the properties on the corresponding object.RunTime.RemoteObjectgetA function which serves as a getter for the property, orundefinedif there is no getter (accessor descriptors only).BooleanisOwnTrue if the property is owned for the object.StringnameProperty name or symbol description.RunTime.RemoteObjectsetA function which serves as a setter for the property, orundefinedif there is no setter (accessor descriptors only).RunTime.RemoteObjectsymbolProperty symbol object, if the property is of thesymboltype.RunTime.RemoteObjectvalueThe value associated with the property.BooleanwasThrownTrue if the result was thrown during the evaluation.BooleanwritableTrue if the value associated with the property may be changed (data descriptors only).-
Fields inherited from class Torello.Browser.BaseType
domain, helperSingleton, isPresent, numFields
-
-
Constructor Summary
Constructors Constructor Description PropertyDescriptor(ReadOnlyList<Boolean> isPresent, String name, RunTime.RemoteObject value, Boolean writable, RunTime.RemoteObject get, RunTime.RemoteObject set, boolean configurable, boolean enumerable, Boolean wasThrown, Boolean isOwn, RunTime.RemoteObject symbol)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static RunTime.PropertyDescriptorfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<RunTime.PropertyDescriptor>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
name
public final java.lang.String name
Property name or symbol description.
-
value
public final RunTime.RemoteObject value
The value associated with the property.
OPTIONAL
-
writable
public final java.lang.Boolean writable
True if the value associated with the property may be changed (data descriptors only).
OPTIONAL
-
get
public final RunTime.RemoteObject get
A function which serves as a getter for the property, orundefinedif there is no getter (accessor descriptors only).
OPTIONAL
-
set
public final RunTime.RemoteObject set
A function which serves as a setter for the property, orundefinedif there is no setter (accessor descriptors only).
OPTIONAL
-
configurable
public final boolean configurable
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
-
enumerable
public final boolean enumerable
True if this property shows up during enumeration of the properties on the corresponding object.
-
wasThrown
public final java.lang.Boolean wasThrown
True if the result was thrown during the evaluation.
OPTIONAL
-
isOwn
public final java.lang.Boolean isOwn
True if the property is owned for the object.
OPTIONAL
-
symbol
public final RunTime.RemoteObject symbol
Property symbol object, if the property is of thesymboltype.
OPTIONAL
-
-
Constructor Detail
-
PropertyDescriptor
public PropertyDescriptor(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String name, RunTime.RemoteObject value, java.lang.Boolean writable, RunTime.RemoteObject get, RunTime.RemoteObject set, boolean configurable, boolean enumerable, java.lang.Boolean wasThrown, java.lang.Boolean isOwn, RunTime.RemoteObject symbol)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static RunTime.PropertyDescriptor fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<RunTime.PropertyDescriptor> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-