2 * Copyright (c) 2010-2022 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.binding.pulseaudio.internal.items;
16 * Abstract root class for all items in an pulseaudio server. Every item in a
17 * pulseaudio server has a name and a unique id which can be inherited by this
20 * @author Tobias Bräutigam - Initial contribution
22 public abstract class AbstractDeviceConfig {
25 protected String name;
27 public AbstractDeviceConfig(int id, String name) {
33 * returns the internal id of this device
41 public String getUIDName() {
42 return name.replaceAll("[^A-Za-z0-9_]", "_");
45 public String getPaName() {