FileDocCategorySizeDatePackage
MessageEvent.javaAPI DocGlassfish v2 API730Wed Feb 08 12:31:20 GMT 2006persistence.antlr.debug

MessageEvent

public class MessageEvent extends Event

Fields Summary
private String
text
public static int
WARNING
public static int
ERROR
Constructors Summary
public MessageEvent(Object source)



	   
		super(source);
	
public MessageEvent(Object source, int type, String text)

		super(source);
		setValues(type,text);
	
Methods Summary
public java.lang.StringgetText()

		return text;
	
voidsetText(java.lang.String text)

		this.text = text;
	
voidsetValues(int type, java.lang.String text)
This should NOT be called from anyone other than ParserEventSupport!

		super.setValues(type);
		setText(text);
	
public java.lang.StringtoString()

		return "ParserMessageEvent [" +
		       (getType()==WARNING?"warning,":"error,") +
		       getText() + "]";