com.xmlmind.domutil
Class ConsoleHelper

java.lang.Object
  extended by com.xmlmind.domutil.ConsoleHelper
All Implemented Interfaces:
Console
Direct Known Subclasses:
ConsoleHelper2

public class ConsoleHelper
extends java.lang.Object
implements Console


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xmlmind.util.Console
Console.MessageType
 
Field Summary
 Console console
           
 
Constructor Summary
ConsoleHelper(Console console)
           
 
Method Summary
 void debug(org.w3c.dom.Element element, java.lang.String message)
           
 void debug(java.lang.String message)
           
 void error(org.w3c.dom.Element element, java.lang.String message)
           
 void error(java.lang.String message)
           
 Console.MessageType getVerbosity()
           
 void info(org.w3c.dom.Element element, java.lang.String message)
           
 void info(java.lang.String message)
           
 boolean isShowing(Console.MessageType messageType)
           
 boolean isVerbose()
           
static java.lang.String prependElementLocation(org.w3c.dom.Element element, java.lang.String message)
           
 void setVerbosity(Console.MessageType verbosity)
           
 void showMessage(java.lang.String message, Console.MessageType messageType)
          Show specified message to user.
 void verbose(org.w3c.dom.Element element, java.lang.String message)
           
 void verbose(java.lang.String message)
           
 void warning(org.w3c.dom.Element element, java.lang.String message)
           
 void warning(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

console

public final Console console
Constructor Detail

ConsoleHelper

public ConsoleHelper(Console console)
Method Detail

setVerbosity

public void setVerbosity(Console.MessageType verbosity)

getVerbosity

public Console.MessageType getVerbosity()

isVerbose

public boolean isVerbose()

error

public void error(java.lang.String message)

warning

public void warning(java.lang.String message)

info

public void info(java.lang.String message)

verbose

public void verbose(java.lang.String message)

debug

public void debug(java.lang.String message)

error

public void error(org.w3c.dom.Element element,
                  java.lang.String message)

warning

public void warning(org.w3c.dom.Element element,
                    java.lang.String message)

info

public void info(org.w3c.dom.Element element,
                 java.lang.String message)

verbose

public void verbose(org.w3c.dom.Element element,
                    java.lang.String message)

debug

public void debug(org.w3c.dom.Element element,
                  java.lang.String message)

prependElementLocation

public static java.lang.String prependElementLocation(org.w3c.dom.Element element,
                                                      java.lang.String message)

isShowing

public boolean isShowing(Console.MessageType messageType)

showMessage

public void showMessage(java.lang.String message,
                        Console.MessageType messageType)
Description copied from interface: Console
Show specified message to user.

Specified by:
showMessage in interface Console
Parameters:
message - a possibly multi-line message
messageType - type of message: Console.MessageType.INFO, Console.MessageType.WARNING, Console.MessageType.ERROR or Console.MessageType.DEBUG.