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

jadex.bridge.ErrorReport Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.267
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy