org.openrdf.sesame.admin
Class AdminMsg

java.lang.Object
  extended byorg.openrdf.sesame.admin.AdminMsg

public class AdminMsg
extends Object

A message as returned by Sesame in response to a call to one of its administrative services. An AdminMsg consists, apart from the message itself, of a type (status, notification, warning or error), and an associated line and column number (if applicable and available).


Field Summary
static int ERROR
          Error.
static int NOTIFICATION
          Notification.
static int STATUS
          Status message.
static int WARNING
          Warning.
 
Constructor Summary
AdminMsg(int type, String msg, int lineNo, int colNo)
          Creates a new RepositoryInfo object.
 
Method Summary
 int getColumnNo()
          Gets the column number associated with this messages, or -1 if not available or applicable.
 int getLineNo()
          Gets the line number associated with this messages, or -1 if not available or applicable.
 String getMessage()
          Gets the actual message.
 int getType()
          The message's type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS

public static final int STATUS
Status message.

See Also:
Constant Field Values

NOTIFICATION

public static final int NOTIFICATION
Notification.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Warning.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Error.

See Also:
Constant Field Values
Constructor Detail

AdminMsg

public AdminMsg(int type,
                String msg,
                int lineNo,
                int colNo)
Creates a new RepositoryInfo object.

Method Detail

getType

public int getType()
The message's type. The returned integer is equal to one of the constants STATUS, NOTIFICATION, WARNING or ERROR.

See Also:
STATUS, NOTIFICATION, WARNING, ERROR

getMessage

public String getMessage()
Gets the actual message.


getLineNo

public int getLineNo()
Gets the line number associated with this messages, or -1 if not available or applicable.


getColumnNo

public int getColumnNo()
Gets the column number associated with this messages, or -1 if not available or applicable.



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.