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

jadex.rules.examples.helloworld.Message Maven / Gradle / Ivy

package jadex.rules.examples.helloworld;

/**
 *  Simple java bean for a message.
 */
public class Message
{
	//-------- attributes --------
	
	/** The message text. */
	protected String text;
	
	//-------- constructors --------
	
	/**
	 *  Create a new message.
	 *  @param text The text.
	 */
	public Message()
	{
	}
	
	/**
	 *  Create a new message.
	 *  @param text The text.
	 */
	public Message(String text)
	{
		this.text = text;
	}

	//-------- methods --------
	
	/**
	 *  Get the text.
	 *  @return The text.
	 */
	public String getText()
	{
		return text;
	}

	/**
	 *  Set the text.
	 *  @param text The text.
	 */
	public void setText(String text)
	{
		this.text = text;
	}
	
	/**
	 *  Get the text.
	 *  @return The text.
	 */
	public static boolean getText2(String a)
	{
		return false;
//		return "hello";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy