Package Torello.Browser
Class Accessibility.AXValueSource
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Accessibility.AXValueSource
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Accessibility
public static class Accessibility.AXValueSource extends BaseType implements java.io.Serializable
A single source for a computed AX property.- 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,420 Bytes Line Count: 180 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field String
attribute
The name of the relevant attribute, if any.Accessibility.AXValue
attributeValue
The value of the relevant attribute, if any.Boolean
invalid
Whether the value for this property is invalid.String
invalidReason
Reason for the value being invalid, if it is.String
nativeSource
The native markup source for this value, e.g.Accessibility.AXValue
nativeSourceValue
The value, such as a node or node list, of the native source.Boolean
superseded
Whether this source is superseded by a higher priority source.String
type
What type of source this is.Accessibility.AXValue
value
The value of this property source.
-
Constructor Summary
Constructors Constructor Description AXValueSource(String type, Accessibility.AXValue value, String attribute, Accessibility.AXValue attributeValue, Boolean superseded, String nativeSource, Accessibility.AXValue nativeSourceValue, Boolean invalid, String invalidReason)
ConstructorAXValueSource(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
-
type
public final java.lang.String type
What type of source this is.
-
value
public final Accessibility.AXValue value
The value of this property source.
OPTIONAL
-
attribute
public final java.lang.String attribute
The name of the relevant attribute, if any.
OPTIONAL
-
attributeValue
public final Accessibility.AXValue attributeValue
The value of the relevant attribute, if any.
OPTIONAL
-
superseded
public final java.lang.Boolean superseded
Whether this source is superseded by a higher priority source.
OPTIONAL
-
nativeSource
public final java.lang.String nativeSource
The native markup source for this value, e.g. a <label> element.
OPTIONAL
-
nativeSourceValue
public final Accessibility.AXValue nativeSourceValue
The value, such as a node or node list, of the native source.
OPTIONAL
-
invalid
public final java.lang.Boolean invalid
Whether the value for this property is invalid.
OPTIONAL
-
invalidReason
public final java.lang.String invalidReason
Reason for the value being invalid, if it is.
OPTIONAL
-
-
Constructor Detail
-
AXValueSource
public AXValueSource(java.lang.String type, Accessibility.AXValue value, java.lang.String attribute, Accessibility.AXValue attributeValue, java.lang.Boolean superseded, java.lang.String nativeSource, Accessibility.AXValue nativeSourceValue, java.lang.Boolean invalid, java.lang.String invalidReason)
Constructor- Parameters:
type
- What type of source this is.value
- The value of this property source.
OPTIONALattribute
- The name of the relevant attribute, if any.
OPTIONALattributeValue
- The value of the relevant attribute, if any.
OPTIONALsuperseded
- Whether this source is superseded by a higher priority source.
OPTIONALnativeSource
- The native markup source for this value, e.g. a <label> element.
OPTIONALnativeSourceValue
- The value, such as a node or node list, of the native source.
OPTIONALinvalid
- Whether the value for this property is invalid.
OPTIONALinvalidReason
- Reason for the value being invalid, if it is.
OPTIONAL
-
AXValueSource
public AXValueSource(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'AXValueSource'
.
-
-
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; AXValueSource o = (AXValueSource) other; return Objects.equals(this.type, o.type) && Objects.equals(this.value, o.value) && Objects.equals(this.attribute, o.attribute) && Objects.equals(this.attributeValue, o.attributeValue) && Objects.equals(this.superseded, o.superseded) && Objects.equals(this.nativeSource, o.nativeSource) && Objects.equals(this.nativeSourceValue, o.nativeSourceValue) && Objects.equals(this.invalid, o.invalid) && Objects.equals(this.invalidReason, o.invalidReason);
-
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.type) + this.value.hashCode() + Objects.hashCode(this.attribute) + this.attributeValue.hashCode() + Objects.hashCode(this.superseded) + Objects.hashCode(this.nativeSource) + this.nativeSourceValue.hashCode() + Objects.hashCode(this.invalid) + Objects.hashCode(this.invalidReason);
-
-