Class TextInterpreter

java.lang.Object
com.google.gwt.uibinder.elementparsers.TextInterpreter
All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>

public class TextInterpreter extends Object implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
The interpreter of choice for calls to XMLElement.consumeInnerText(com.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<java.lang.String>). It handles <m:msg/> elements, replacing them with references to Messages interface calls.

Calls to XMLElement.consumeInnerHtml(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>) should instead use HtmlInterpreter

  • Constructor Details

    • TextInterpreter

      public TextInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer)
  • Method Details

    • interpretElement

      public String interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteException
      Description copied from interface: com.google.gwt.uibinder.rebind.XMLElement.Interpreter
      Given an XMLElement, return its filtered value.
      Specified by:
      interpretElement in interface com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
      Throws:
      UnableToCompleteException - on error