/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.binding.plex.internal.communication; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; /** * Holds information about a connection to a {@link Device} * * @author Jeroen Idserda * @since 1.8.0 */ @XmlRootElement(name = "Connection") @XmlAccessorType(XmlAccessType.FIELD) public class Connection { @XmlAttribute private String protocol; @XmlAttribute private String address; @XmlAttribute private String port; @XmlAttribute private String uri; @XmlAttribute private Boolean local; public String getProtocol() { return protocol; } public void setProtocol(String protocol) { this.protocol = protocol; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getPort() { return port; } public void setPort(String port) { this.port = port; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } public Boolean getLocal() { return local; } public void setLocal(Boolean local) { this.local = local; } }