Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.report.impl
Class IOMessageImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.report.impl.MessageImpl
      extended by eu.esdihumboldt.hale.common.core.io.report.impl.IOMessageImpl
All Implemented Interfaces:
IOMessage, Message

@Immutable
public class IOMessageImpl
extends MessageImpl
implements IOMessage

Default IOMessage implementation

Since:
2.2
Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
  IOMessageImpl(String message, Throwable throwable)
          Create a new message
  IOMessageImpl(String message, Throwable throwable, int lineNumber, int column)
          Create a new message
  IOMessageImpl(String pattern, Throwable throwable, int lineNumber, int column, Object... arguments)
          Create a new message and format it using MessageFormat
protected IOMessageImpl(String message, Throwable throwable, String stackTrace, int lineNumber, int column)
          Create a new message
 
Method Summary
 int getColumn()
          Get the column the message refers to
 String getFormattedMessage()
          Get the formatted message string with additional informations.
 int getLineNumber()
          Get the line number the message refers to
 
Methods inherited from class eu.esdihumboldt.hale.common.core.report.impl.MessageImpl
getMessage, getStackTrace, getThrowable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.report.Message
getMessage, getStackTrace, getThrowable
 

Constructor Detail

IOMessageImpl

public IOMessageImpl(String message,
                     Throwable throwable)
Create a new message

Parameters:
message - the message string
throwable - the associated throwable, may be null

IOMessageImpl

public IOMessageImpl(String message,
                     Throwable throwable,
                     int lineNumber,
                     int column)
Create a new message

Parameters:
message - the message string
throwable - the associated throwable, may be null
lineNumber - the line number in the file, -1 for none
column - the column in the line, -1 for none

IOMessageImpl

protected IOMessageImpl(String message,
                        Throwable throwable,
                        String stackTrace,
                        int lineNumber,
                        int column)
Create a new message

Parameters:
message - the message string
throwable - the associated throwable, may be null
stackTrace - the associated stack trace, or null
lineNumber - the line number in the file, -1 for none
column - the column in the line, -1 for none

IOMessageImpl

public IOMessageImpl(String pattern,
                     Throwable throwable,
                     int lineNumber,
                     int column,
                     Object... arguments)
Create a new message and format it using MessageFormat

Parameters:
pattern - the message format pattern
throwable - the associated throwable, may be null
lineNumber - the line number in the file, -1 for none
column - the column in the line, -1 for none
arguments - the arguments for the message format
Method Detail

getColumn

public int getColumn()
Description copied from interface: IOMessage
Get the column the message refers to

Specified by:
getColumn in interface IOMessage
Returns:
the column, -1 if no column is referenced
See Also:
IOMessage.getColumn()

getLineNumber

public int getLineNumber()
Description copied from interface: IOMessage
Get the line number the message refers to

Specified by:
getLineNumber in interface IOMessage
Returns:
the line number, -1 if no line is referenced
See Also:
IOMessage.getLineNumber()

getFormattedMessage

public String getFormattedMessage()
Description copied from interface: Message
Get the formatted message string with additional informations.

Specified by:
getFormattedMessage in interface Message
Overrides:
getFormattedMessage in class MessageImpl
Returns:
the formatted message
See Also:
Message.getFormattedMessage()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d