Class SimpleConsole

    • Field Detail

      • INSTANCE

        public static final SimpleConsole INSTANCE
        A ready-to-use instance of SimpleConsole
    • Constructor Detail

      • SimpleConsole

        public SimpleConsole​(String prefix,
                             boolean showMessageType,
                             Console.MessageType errorLevel)
        Constructs a SimpleConsole.
        Parameters:
        prefix - prefix to be added to the messages displayed by this console; may be null
        showMessageType - specifies whether the type of the message should be used to prefix the messages displayed by this console
        errorLevel - specifies the least severe message type displayed by this console
    • Method Detail

      • setPrefix

        public void setPrefix​(String prefix)
        Specifies the prefix to be added to the messages displayed by this console; may be null.
      • getPrefix

        public String getPrefix()
        Returns the prefix to be added to the messages displayed by this console; may return null.
      • setShowingMessageType

        public void setShowingMessageType​(boolean show)
        Specifies whether the type of the message should be used to prefix the messages displayed by this console.
      • isShowingMessageType

        public boolean isShowingMessageType()
        Returns true if the type of the message should be used to prefix the messages displayed by this console; false otherwise.
      • setErrorLevel

        public void setErrorLevel​(Console.MessageType level)
        Specifies the least severe message type displayed by this console.
      • getErrorLevel

        public Console.MessageType getErrorLevel()
        Returns the least severe message type displayed by this console.