jadex.bridge.ErrorReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge;
import java.util.Map;
/**
* Error report that holds information about model errors.
*/
public class ErrorReport implements IErrorReport
{
//-------- attributes --------
/** The error text. */
protected String errtext;
/** The error html text. */
protected String errhtml;
/** The external reports. */
protected Map documents;
//-------- constructors --------
/**
*
*/
public ErrorReport()
{
}
/**
*
*/
public ErrorReport(String errtext, String errhtml, Map documents)
{
this.errtext = errtext;
this.errhtml = errhtml;
this.documents = documents;
}
//-------- methods --------
/**
* Get the text representation of the report.
* @return The text.
*/
public String getErrorText()
{
return errtext;
}
/**
* Set the errtext.
* @param errtext The errtext to set.
*/
public void setErrorText(String errtext)
{
this.errtext = errtext;
}
/**
* Get the html representation of the report.
* @return The html string.
*/
public String getErrorHTML()
{
return errhtml;
}
/**
* Set the errhtml.
* @param errhtml The errhtml to set.
*/
public void setErrorHTML(String errhtml)
{
this.errhtml = errhtml;
}
/**
* Get the external documents.
* (model -> report)
* @return The external documents.
*/
public Map getDocuments()
{
return documents;
}
/**
* Set the documents.
* @param documents The documents to set.
*/
public void setDocuments(Map documents)
{
this.documents = documents;
}
}