All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.accessibility.AXProperty Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.accessibility;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public final class AXProperty {
  private AXPropertyName name;

  private AXValue value;

  @JsonCreator
  public AXProperty(@JsonProperty("name") AXPropertyName name,
      @JsonProperty("value") AXValue value) {
    this.name = name;
    this.value = value;
  }

  public AXPropertyName getName() {
    return name;
  }

  public AXValue getValue() {
    return value;
  }

  public static AXProperty.Builder builder() {
    return new AXProperty.Builder();
  }

  public static final class Builder {
    private AXPropertyName name;

    private AXValue value;

    private Builder() {
    }

    public AXProperty.Builder setName(AXPropertyName name) {
      this.name = name;
      return this;
    }

    public AXProperty.Builder setValue(AXValue value) {
      this.value = value;
      return this;
    }

    public AXProperty build() {
      return new AXProperty(name, value);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy