2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.io.neeo.internal.models;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.io.neeo.internal.NeeoUtil;
19 * Represents a directory action request (action on a leaf value). This class is simply used for deserialization from
22 * @author Tim Roberts - Initial Contribution
26 public class NeeoDirectoryRequestAction {
27 /** The action identifier from the item */
28 private final String actionIdentifier;
31 * Constructs the request action from the action identifier
33 * @param actionIdentifier a non-null, non-empty action identifier
35 public NeeoDirectoryRequestAction(String actionIdentifier) {
36 NeeoUtil.requireNotEmpty(actionIdentifier, "actionIdentifier cannot be empty");
37 this.actionIdentifier = actionIdentifier;
41 * Returns the action identifier
43 * @return a non-null, non-empty action identifier
45 public String getActionIdentifier() {
46 return actionIdentifier;
50 public String toString() {
51 return "NeeoDiscoveryRequestAction [actionIdentifier=" + actionIdentifier + "]";