Interface TagHandler

All Known Implementing Classes:
ApplicationHandler, BeanValidatorHandler, CellHandler, DefaultComponentHandler, DefaultObjectHandler, ExcludeFieldValidatorHandler, FieldValidatorHandler, ImportHandler, ItemHandler, JAXXComboBoxHandler, JAXXListHandler, JAXXTabHandler, JAXXTreeHandler, JCheckBoxHandler, JComboBoxHandler, JInternalFrameHandler, JListHandler, JMenuHandler, JPasswordFieldHandler, JPopupMenuHandler, JProgressBarHandler, JRadioButtonHandler, JScrollPaneHandler, JSliderHandler, JSpinnerHandler, JSplitPaneHandler, JTabbedPaneHandler, JTextComponentHandler, JToolBarHandler, JTreeHandler, JWindowHandler, JXLayerHandler, RowHandler, ScriptHandler, StyleHandler, TabHandler, TableHandler

public interface TagHandler
Implementations of TagHandler produce Java source code from XML tags. TagHandlers are mapped to particular XML tags (such as <JFrame>) in JAXXCompiler. There is only one TagHandler for any given XML tag, and therefore implementations must be stateless.
Author:
Ethan Nicholas
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String XMLNS_ATTRIBUTE  
  • Method Summary

    Modifier and Type Method Description
    void compileFirstPass​(org.w3c.dom.Element tag, JAXXCompiler compiler)
    Performs the first pass of compilation on an XML tag from a JAXX source file.
    void compileSecondPass​(org.w3c.dom.Element tag, JAXXCompiler compiler)
    Performs the second pass of compilation on an XML tag from a JAXX source file.
  • Field Details

  • Method Details

    • compileFirstPass

      void compileFirstPass​(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException
      Performs the first pass of compilation on an XML tag from a JAXX source file. TagHandler implementations affect the generated .java file by calling methods in the JAXXCompiler.
      Parameters:
      tag - the XML tag to compile
      compiler - the active JAXXCompiler
      Throws:
      CompilerException - if a compilation error occurs
      java.io.IOException - if an I/O error occurs
    • compileSecondPass

      void compileSecondPass​(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException
      Performs the second pass of compilation on an XML tag from a JAXX source file. TagHandler implementations affect the generated .java file by calling methods in the JAXXCompiler.
      Parameters:
      tag - the XML tag to compile
      compiler - the active JAXXCompiler
      Throws:
      CompilerException - if a compilation error occurs
      java.io.IOException - if an I/O error occurs