Package org.openpreservation.messages
Interface MessageLog
public interface MessageLog
Interface for a log of
Message
objects.-
Method Summary
Modifier and TypeMethodDescriptionint
add
(String path, Collection<? extends Message> messages) Add aCollection
ofMessages
to the log for a particular path.int
Add aMessage
to the log for a particular path.int
int
int
getInfos()
getMessagesBySeverity
(Message.Severity severity) getMessagesForPath
(String path) int
boolean
boolean
hasInfos()
boolean
boolean
isEmpty()
Is the log empty?int
size()
Get the number of messages in the log.
-
Method Details
-
size
int size()Get the number of messages in the log.- Returns:
- the
int
number of messages in the log
-
isEmpty
boolean isEmpty()Is the log empty?- Returns:
true
if the log is empty,false
otherwise
-
add
Add aMessage
to the log for a particular path.- Parameters:
path
- theString
path for the messagemessage
- theMessage
to be added- Returns:
- the
int
number of messages in the log
-
add
Add aCollection
ofMessages
to the log for a particular path.- Parameters:
path
- theString
path for the messagemessages
- theCollection
ofMessages
to be added- Returns:
- the
int
number of messages in the log
-
add
-
getErrors
-
getWarnings
-
getInfos
-
getMessages
-
getMessagesBySeverity
-
getMessagesById
-
getMessagesForPath
-
hasErrors
boolean hasErrors() -
hasWarnings
boolean hasWarnings() -
hasInfos
boolean hasInfos() -
getErrorCount
int getErrorCount() -
getWarningCount
int getWarningCount() -
getInfoCount
int getInfoCount()
-