|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.qizx.api.Message
public class Message
Message (error or warning) returned by compilation errors.
Field Summary | |
---|---|
static int |
DETAIL
Message type returned by getType() for an auxiliary information
message. |
static int |
ERROR
Message type returned by getType() for an error. |
static int |
WARNING
Message type returned by getType() for a warning. |
Constructor Summary | |
---|---|
Message(int type,
QName code,
String text,
String moduleURI,
int position,
int lineNumber,
int columnNumber,
String srcLine)
For internal use. |
Method Summary | |
---|---|
int |
getColumnNumber()
Gets the related position in the line (or column number). |
QName |
getErrorCode()
Gets the XQuery error code. |
int |
getLineNumber()
Gets the related line number (first line is 1). |
String |
getModuleURI()
Gets the URI of the concerned XQuery module. |
int |
getPosition()
Gets the related character position in the whole source script. |
String |
getSourceLine()
Gets the text of the related line in the source code. |
String |
getText()
Gets the message text. |
int |
getType()
Gets the message type (ERROR or WARNING or DETAIL). |
void |
print(PrintWriter output,
boolean withSource)
Prints a single message. |
String |
toString()
Returns a displayable form of the message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ERROR
getType()
for an error.
public static final int WARNING
getType()
for a warning.
public static final int DETAIL
getType()
for an auxiliary information
message.
Constructor Detail |
---|
public Message(int type, QName code, String text, String moduleURI, int position, int lineNumber, int columnNumber, String srcLine)
type
- code
- text
- moduleURI
- position
- lineNumber
- columnNumber
- srcLine
- Method Detail |
---|
public QName getErrorCode()
public int getColumnNumber()
public int getLineNumber()
public String getModuleURI()
public String getText()
public int getType()
public int getPosition()
public String getSourceLine()
public void print(PrintWriter output, boolean withSource)
output
- print outputwithSource
- if true, print the concerned source line with a mark
under the point where the message is locatedpublic String toString()
toString
in class Object
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |