org.semanticweb.elk.util.logging
Class ElkMessage

java.lang.Object
  extended by org.semanticweb.elk.util.logging.ElkMessage

public class ElkMessage
extends Object

Enhanced message class that carries information to classify the message, in addition to the actual messages string.

Author:
Markus Kroetzsch

Field Summary
protected  String message
           
protected  String messageType
           
 
Constructor Summary
ElkMessage(String message, String messageType)
          Create a new message.
 
Method Summary
 String getMessage()
           
 String getMessageType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected final String message

messageType

protected final String messageType
Constructor Detail

ElkMessage

public ElkMessage(String message,
                  String messageType)
Create a new message. The message can be an arbitrary string, possibly with line breaks (this is encouraged for very long messages). The messageType should be a global identifier for the kind of message, preferably human-readable and starting lower case, such as "unsupportedFeature". Dots could be used to relate a message type to a Java package/class, but mentioning ELK is not useful (start only after "org.semantiweb.elk").

Parameters:
message -
messageType -
Method Detail

getMessage

public String getMessage()

getMessageType

public String getMessageType()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.