jaxx.compiler.tags
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, 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
static String XMLNS_ATTRIBUTE
           
 
Method Summary
 void compileFirstPass(Element tag, JAXXCompiler compiler)
          Performs the first pass of compilation on an XML tag from a JAXX source file.
 void compileSecondPass(Element tag, JAXXCompiler compiler)
          Performs the second pass of compilation on an XML tag from a JAXX source file.
 

Field Detail

XMLNS_ATTRIBUTE

static final String XMLNS_ATTRIBUTE
See Also:
Constant Field Values
Method Detail

compileFirstPass

void compileFirstPass(Element tag,
                      JAXXCompiler compiler)
                      throws CompilerException,
                             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
IOException - if an I/O error occurs

compileSecondPass

void compileSecondPass(Element tag,
                       JAXXCompiler compiler)
                       throws CompilerException,
                              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
IOException - if an I/O error occurs


Copyright © 2008-2010 CodeLutin. All Rights Reserved.