Package wt.visitor

Class TextOutputVisitor

java.lang.Object
wt.visitor.VisitorAdapter
wt.visitor.TextOutputVisitor
All Implemented Interfaces:
Visitor

public class TextOutputVisitor extends VisitorAdapter
The TextOutputVisitor can be used as a base class for Visitor implementations that are primarily used to produce text output. This class contains a reference to a PrintWriter for producing text output. Connvenience methods are also available for localizing text output.

Supported API: true

Extendable: true
  • Constructor Details

  • Method Details

    • getPrintWriter

      public PrintWriter getPrintWriter()
      Gets the value of the attribute: printWriter.

      Supported API: true
      Returns:
      PrintWriter
    • setPrintWriter

      public void setPrintWriter(PrintWriter a_PrintWriter) throws WTPropertyVetoException
      Sets the value of the attribute: printWriter.

      Supported API: true
      Parameters:
      a_PrintWriter -
      Throws:
      WTPropertyVetoException
    • getResourceBundle

      public ResourceBundle getResourceBundle()
      Gets the object for the association that plays role: theResourceBundle.

      Supported API: true
      Returns:
      ResourceBundle
    • setResourceBundle

      public void setResourceBundle(ResourceBundle a_ResourceBundle) throws WTPropertyVetoException
      Sets the object for the association that plays role: theResourceBundle.

      Supported API: true
      Parameters:
      a_ResourceBundle -
      Throws:
      WTPropertyVetoException
    • setPrintWriter

      public void setPrintWriter(OutputStream a_outputStream) throws WTPropertyVetoException
      Sets the PrintWriter instance.

      Supported API: true
      Parameters:
      a_outputStream -
      Throws:
      WTPropertyVetoException
    • printLocalizedMessage

      public void printLocalizedMessage(String a_messageKey, Object[] a_params)
      Prints a message using the message key, parameters, and the instance resource bundle.

      Supported API: true
      Parameters:
      a_messageKey -
      a_params -
    • printLocalizedMessage

      public void printLocalizedMessage(ResourceBundle a_resourceBundle, String a_messageKey, Object[] a_params)
      Prints a message using the message key, parameters, and resource bundle.

      Supported API: true
      Parameters:
      a_resourceBundle -
      a_messageKey -
      a_params -
    • printLocalizedMessage

      public void printLocalizedMessage(LocalizableMessage a_localizedMessage)
      Prints a message using the locale.

      Supported API: true
      Parameters:
      a_localizedMessage -