org.semanticweb.elk.util.logging
Class ElkMessage
java.lang.Object
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
message
protected final String message
messageType
protected final String messageType
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 -
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.