Package org.openscience.cdk.rinchi
Class StatusMessagesOutput
java.lang.Object
org.openscience.cdk.rinchi.StatusMessagesOutput
- Direct Known Subclasses:
RInChIGenerator,RInChIToReaction
- Author:
- Uli Fechner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the status of a process, indicating whether it was successful, encountered warnings, or errors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMessage(String message, StatusMessagesOutput.Status status) Adds a message with a given status, updating the current status to the higher severity.protected voidResets field to initial state.Retrieves unmodifiable messages related to RInChI processing.Access the status of the RInChI Decomposition process.
-
Constructor Details
-
StatusMessagesOutput
public StatusMessagesOutput()
-
-
Method Details
-
clearStatusAndMessages
protected void clearStatusAndMessages()Resets field to initial state.
Resets the current status toStatusMessagesOutput.Status.SUCCESSand clears all accumulated messages. -
addMessage
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
Access the status of the RInChI Decomposition process.- Returns:
- the status
-
getMessages
Retrieves unmodifiable messages related to RInChI processing.- Returns:
- an unmodifiable list of messages
-