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

org.bidib.wizard.api.notification.ConnectionInfo Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.api.notification;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.bidib.wizard.api.model.common.PreferencesPortType;
import org.bidib.wizard.api.model.connection.ConnectionState;

public class ConnectionInfo {

    private String connectionId;

    private ConnectionState connectionState;

    private String error;

    private PreferencesPortType portType;

    public ConnectionInfo(String connectionId, ConnectionState connectionState, PreferencesPortType portType) {
        this.connectionId = connectionId;
        this.connectionState = connectionState;
        this.portType = portType;
    }

    public String getConnectionId() {
        return connectionId;
    }

    public ConnectionState getConnectionState() {
        return connectionState;
    }

    /**
     * @return the portType
     */
    public PreferencesPortType getPortType() {
        return portType;
    }

    /**
     * @return the error
     */
    public String getError() {
        return error;
    }

    /**
     * @param error
     *            the error to set
     */
    public void setError(String error) {
        this.error = error;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy