Package org.openscience.cdk.rinchi
Class StatusMessagesOutput
- java.lang.Object
-
- org.openscience.cdk.rinchi.StatusMessagesOutput
-
- Direct Known Subclasses:
RInChIGenerator
,RInChIToReaction
public abstract class StatusMessagesOutput extends Object
- Author:
- Uli Fechner
- Source code:
- main
- Belongs to CDK module:
- rinchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatusMessagesOutput.Status
Represents the status of a process, indicating whether it was successful, encountered warnings, or errors.
-
Constructor Summary
Constructors Constructor Description StatusMessagesOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addMessage(String message, StatusMessagesOutput.Status status)
Adds a message with a given status, updating the current status to the higher severity.protected void
clearStatusAndMessages()
Resets field to initial state.List<String>
getMessages()
Retrieves unmodifiable messages related to RInChI processing.StatusMessagesOutput.Status
getStatus()
Access the status of the RInChI Decomposition process.
-
-
-
Method Detail
-
clearStatusAndMessages
protected void clearStatusAndMessages()
Resets field to initial state.
Resets the current status toStatusMessagesOutput.Status.SUCCESS
and clears all accumulated messages.
-
addMessage
protected void addMessage(String message, StatusMessagesOutput.Status status)
Adds a message with a given status, updating the current status to the higher severity.- Parameters:
message
- the message to addstatus
- the status associated with the message
-
getStatus
public StatusMessagesOutput.Status getStatus()
Access the status of the RInChI Decomposition process.- Returns:
- the status
-
-