# AccessibilityNodeInfoCompat.StructuredDataInfoCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java+class:androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat) Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

*** ** * ** ***


```
public abstract class AccessibilityNodeInfoCompat.StructuredDataInfoCompat
```

<br />

Known direct subclasses [AccessibilityNodeInfoCompat.MathInfoCompat](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat)

|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat` | Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.MathInfo.html`, which is a class that holds information about a node that represents a mathematical expression. |

*** ** * ** ***

Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html`, which is a abstract base class for holding structured semantic information about a node.

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html` | Compatibility: - API \<: 36.1: Class methods perform no-op behavior. |

## Summary

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#StructuredDataInfoCompat(android.view.accessibility.AccessibilityNodeInfo.StructuredDataInfo)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html structuredDataInfo )` Instantiates a new StructuredDataInfoCompat. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html obj)` Compatibility: |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getAttribute(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey)` Gets the value of an attribute. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/java/lang/String.html, https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getAttributes()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getTag()()` |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#hashCode()()` Compatibility: |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#putAttribute(java.lang.String,java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value)` Adds an attribute. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#removeAttribute(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey)` Removes an attribute. |

## Protected constructors

### StructuredDataInfoCompat

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
protected StructuredDataInfoCompat(
    @Nullable AccessibilityNodeInfo.StructuredDataInfo structuredDataInfo
)
```

Instantiates a new StructuredDataInfoCompat.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html structuredDataInfo` | The underlying StructuredDataInfo to wrap. |

## Public methods

### equals

```
public boolean equals(Object obj)
```

Compatibility:

- API \<: 36.1: Returns `true` if this object is identical to `obj`, else `false`

### getAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public @Nullable String getAttribute(@NonNull String attributeKey)
```

Gets the value of an attribute.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey` | The attribute key. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | The attribute value. Compatibility: - API \<: 36.1: Always returns `null` |

### getAttributes

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public @NonNull Map<String, String> getAttributes()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/java/lang/String.html, https://developer.android.com/reference/java/lang/String.html>` | The map of attributes. Compatibility: - API \<: 36.1: Always returns an empty map |

### getTag

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public @Nullable String getTag()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | The tag for this structured semantic information. Compatibility: - API \<: 36.1: Always returns `null` |

### hashCode

```
public int hashCode()
```

Compatibility:

- API \<: 36.1: Always returns `0`

### putAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public void putAttribute(@NonNull String attributeKey, @NonNull String value)
```

Adds an attribute.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey` | The attribute key. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value` | The attribute value. Compatibility: - API \<: 36.1: Performs no-op behavior |

### removeAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public void removeAttribute(@NonNull String attributeKey)
```

Removes an attribute.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html attributeKey` | The attribute key. Compatibility: - API \<: 36.1: Performs no-op behavior |