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

org.opentcs.util.persistence.v005.PropertyTO Maven / Gradle / Ivy

The newest version!
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.util.persistence.v005;

import static java.util.Objects.requireNonNull;

import jakarta.annotation.Nonnull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

/**
 */
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(propOrder = {"name", "value"})
public class PropertyTO {

  private String name = "";
  private String value = "";

  /**
   * Creates a new instance.
   */
  public PropertyTO() {
  }

  @XmlAttribute(required = true)
  public String getName() {
    return name;
  }

  public PropertyTO setName(
      @Nonnull
      String name
  ) {
    this.name = requireNonNull(name, "name");
    return this;
  }

  @XmlAttribute(required = true)
  public String getValue() {
    return value;
  }

  public PropertyTO setValue(
      @Nonnull
      String value
  ) {
    requireNonNull(value, "value");
    this.value = value;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy