blob: 7c755287fccc5be425344fe9ca2628a34428c9f3 [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2018-2020 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*******************************************************************************/
package org.eclipse.app4mc.amalthea.visualization.hw;
public class ModelToTextResult {
private boolean errorFlag;
private String errorMessage;
private CharSequence output;
public ModelToTextResult() {
errorFlag = false;
}
public boolean getErrorFlag() {
return errorFlag;
}
public void setErrorFlag(boolean errorFlag) {
this.errorFlag = errorFlag;
}
public boolean error() {
return errorFlag;
}
public boolean success() {
return !errorFlag;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public CharSequence getOutput() {
return output;
}
public void setOutput(CharSequence output) {
this.output = output;
}
}