public abstract class ProgressMessage extends Message implements MessageAccessor.MessageFilter, Iterable<ProgressMessage>
ProgressMessage
objects can only be created using MessageBuilder
.Message.Level
Modifier and Type | Method and Description |
---|---|
MessageAccessor.MessageFilter |
filterLevels(Set<Message.Level> levels)
Returns a view with only messages with text and of a given severity level.
|
List<Message> |
getMessages()
If this message has text, returns a singleton list with an immutable copy of the message.
|
abstract BigDecimal |
getPortion()
Portion within parent (or within whole process if no parent)
|
abstract BigDecimal |
getProgress()
The total progress of this message
|
MessageAccessor.MessageFilter |
greaterThan(int sequence)
Returns a view with only messages with text and with a sequence number above a given
threshold, or with a descendant message above that threshold.
|
MessageAccessor.MessageFilter |
inRange(int start,
int end)
Returns a view with only messages with text and with a sequence number within a given range,
or with a descendant message within that range.
|
Iterator<ProgressMessage> |
iterator()
Returns a momentary view of the child messages.
|
String |
toString() |
getColumn, getFile, getLevel, getLine, getOwnerId, getSequence, getText, getThrowable, getTimeStamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public abstract BigDecimal getProgress()
public abstract BigDecimal getPortion()
public Iterator<ProgressMessage> iterator()
iterator
in interface Iterable<ProgressMessage>
public MessageAccessor.MessageFilter filterLevels(Set<Message.Level> levels)
filterLevels
in interface MessageAccessor.MessageFilter
public MessageAccessor.MessageFilter greaterThan(int sequence)
greaterThan
in interface MessageAccessor.MessageFilter
public MessageAccessor.MessageFilter inRange(int start, int end)
inRange
in interface MessageAccessor.MessageFilter
public List<Message> getMessages()
getMessages
in interface MessageAccessor.MessageFilter
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.