Package Torello.Browser
Class Accessibility.AXNode
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Accessibility.AXNode
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Accessibility
public static class Accessibility.AXNode extends BaseType implements java.io.Serializable
A node in the accessibility tree.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Accessibility.java
- Open New Browser-Tab: Torello/Browser/Accessibility.java
File Size: 7,672 Bytes Line Count: 193 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Integer
backendDOMNodeId
The backend ID for the associated DOM node, if any.String[]
childIds
IDs for each of this node's child nodes.Accessibility.AXValue
description
The accessible description for thisNode
.boolean
ignored
Whether this node is ignored for accessibilityAccessibility.AXProperty[]
ignoredReasons
Collection of reasons why this node is hidden.Accessibility.AXValue
name
The accessible name for thisNode
.String
nodeId
Unique identifier for this node.Accessibility.AXProperty[]
properties
All other properties
OPTIONALAccessibility.AXValue
role
ThisNode
's role, whether explicit or implicit.Accessibility.AXValue
value
The value for thisNode
.
-
Constructor Summary
Constructors Constructor Description AXNode(String nodeId, boolean ignored, Accessibility.AXProperty[] ignoredReasons, Accessibility.AXValue role, Accessibility.AXValue name, Accessibility.AXValue description, Accessibility.AXValue value, Accessibility.AXProperty[] properties, String[] childIds, Integer backendDOMNodeId)
ConstructorAXNode(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
nodeId
public final java.lang.String nodeId
Unique identifier for this node.
-
ignored
public final boolean ignored
Whether this node is ignored for accessibility
-
ignoredReasons
public final Accessibility.AXProperty[] ignoredReasons
Collection of reasons why this node is hidden.
OPTIONAL
-
role
public final Accessibility.AXValue role
ThisNode
's role, whether explicit or implicit.
OPTIONAL
-
name
public final Accessibility.AXValue name
The accessible name for thisNode
.
OPTIONAL
-
description
public final Accessibility.AXValue description
The accessible description for thisNode
.
OPTIONAL
-
value
public final Accessibility.AXValue value
The value for thisNode
.
OPTIONAL
-
properties
public final Accessibility.AXProperty[] properties
All other properties
OPTIONAL
-
childIds
public final java.lang.String[] childIds
IDs for each of this node's child nodes.
OPTIONAL
-
backendDOMNodeId
public final java.lang.Integer backendDOMNodeId
The backend ID for the associated DOM node, if any.
OPTIONAL
-
-
Constructor Detail
-
AXNode
public AXNode(java.lang.String nodeId, boolean ignored, Accessibility.AXProperty[] ignoredReasons, Accessibility.AXValue role, Accessibility.AXValue name, Accessibility.AXValue description, Accessibility.AXValue value, Accessibility.AXProperty[] properties, java.lang.String[] childIds, java.lang.Integer backendDOMNodeId)
Constructor- Parameters:
nodeId
- Unique identifier for this node.ignored
- Whether this node is ignored for accessibilityignoredReasons
- Collection of reasons why this node is hidden.
OPTIONALrole
- ThisNode
's role, whether explicit or implicit.
OPTIONALname
- The accessible name for thisNode
.
OPTIONALdescription
- The accessible description for thisNode
.
OPTIONALvalue
- The value for thisNode
.
OPTIONALproperties
- All other properties
OPTIONALchildIds
- IDs for each of this node's child nodes.
OPTIONALbackendDOMNodeId
- The backend ID for the associated DOM node, if any.
OPTIONAL
-
AXNode
public AXNode(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'AXNode'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; AXNode o = (AXNode) other; return Objects.equals(this.nodeId, o.nodeId) && (this.ignored == o.ignored) && Arrays.deepEquals(this.ignoredReasons, o.ignoredReasons) && Objects.equals(this.role, o.role) && Objects.equals(this.name, o.name) && Objects.equals(this.description, o.description) && Objects.equals(this.value, o.value) && Arrays.deepEquals(this.properties, o.properties) && Arrays.deepEquals(this.childIds, o.childIds) && Objects.equals(this.backendDOMNodeId, o.backendDOMNodeId);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.nodeId) + (this.ignored ? 1 : 0) + Arrays.deepHashCode(this.ignoredReasons) + this.role.hashCode() + this.name.hashCode() + this.description.hashCode() + this.value.hashCode() + Arrays.deepHashCode(this.properties) + Arrays.deepHashCode(this.childIds) + Objects.hashCode(this.backendDOMNodeId);
-
-