org.bidib.wizard.api.notification.ConnectionInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
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);
}
}