Qizx/open API

net.axyana.qizxopen.xquery
Class XQMessage

java.lang.Object
  extended bynet.axyana.qizxopen.xquery.XQSrcPoint
      extended bynet.axyana.qizxopen.xquery.XQMessage
All Implemented Interfaces:
java.io.Serializable

public class XQMessage
extends XQSrcPoint
implements java.io.Serializable

Error, Warning, or Information message, generated by compilation (Static Analysis) or execution.

See Also:
Serialized Form

Field Summary
static int ERROR
          Error message type.
static int INFO
          message type: information.
static int TRACE
          message type: execution trace.
static int TRACEINFO
          message type: trace supplementary info.
static int WARNING
          Warning message type.
 
Constructor Summary
XQMessage(int type, java.lang.String text)
           
 
Method Summary
 java.lang.String getName()
          Returns the message name.
 XQMessage getNextMessage()
          Returns the next message in the list.
 java.lang.String getText()
          Returns the formatted text of the message.
 int getType()
          Returns the message type (ERROR, WARNING, INFO).
static void printMessage(XQMessage msg, java.io.PrintWriter output, boolean showSource)
           
static void printMessages(XQMessage list, java.io.PrintWriter output, boolean showSource)
           
 void setNextMessage(XQMessage value)
           
 
Methods inherited from class net.axyana.qizxopen.xquery.XQSrcPoint
getColumnNumber, getLineNumber, getModuleURI, getOffset, getSourceLine, setLocation, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFO

public static final int INFO
message type: information. May follow an error, warning, or trace message.

See Also:
Constant Field Values

TRACE

public static final int TRACE
message type: execution trace.

See Also:
Constant Field Values

TRACEINFO

public static final int TRACEINFO
message type: trace supplementary info.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Warning message type.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Error message type.

See Also:
Constant Field Values
Constructor Detail

XQMessage

public XQMessage(int type,
                 java.lang.String text)
Method Detail

getType

public int getType()
Returns the message type (ERROR, WARNING, INFO).


getName

public java.lang.String getName()
Returns the message name.


getText

public java.lang.String getText()
Returns the formatted text of the message.


getNextMessage

public XQMessage getNextMessage()
Returns the next message in the list.


setNextMessage

public void setNextMessage(XQMessage value)

printMessages

public static void printMessages(XQMessage list,
                                 java.io.PrintWriter output,
                                 boolean showSource)

printMessage

public static void printMessage(XQMessage msg,
                                java.io.PrintWriter output,
                                boolean showSource)

© 2005 Axyana Software