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
|
Method Summary |
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. |
XMLNS_ATTRIBUTE
static final java.lang.String XMLNS_ATTRIBUTE
- See Also:
- Constant Field Values
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 compilecompiler - 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 compilecompiler - the active JAXXCompiler
- Throws:
CompilerException - if a compilation error occurs
java.io.IOException - if an I/O error occurs
Copyright © 2008-2010 CodeLutin. All Rights Reserved.