@DoNotObfuscate public abstract class AbstractPDFUnitMessage extends java.lang.Object implements IPDFUnitMessage
This class holds all data of a message and the formatting method. The formatting uses the file messages.properties as a ResourceBundle with the name of the concrete class as the key.
This class contains also a shutdown-hook, which logs all messages to stdout. That makes it possible to check the correctness of the formatted messages.
Modifier | Constructor and Description |
---|---|
protected |
AbstractPDFUnitMessage(java.lang.Class<? extends AbstractPDFUnitMessage> msgClass) |
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String param)
Adding a message parameter to the message instance.
|
java.lang.String |
getMessage()
Returning the formatted method.
|
void |
logForDevelopment()
This method allowes to log all messages to an output stream
for further analysis during develoment.
|
protected java.lang.String |
shortenName(java.lang.String longName)
Take some bytes from start and some bytes from end.
|
protected AbstractPDFUnitMessage(java.lang.Class<? extends AbstractPDFUnitMessage> msgClass)
public java.lang.String getMessage()
IPDFUnitMessage
getMessage
in interface IPDFUnitMessage
public void addParam(java.lang.String param)
IPDFUnitMessage
addParam
in interface IPDFUnitMessage
public void logForDevelopment()
IPDFUnitMessage
logForDevelopment
in interface IPDFUnitMessage
protected java.lang.String shortenName(java.lang.String longName)
Copyright (C) PDFUnit.com. See here for license.