Package 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,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.StringXMLNS_ATTRIBUTE -
Method Summary
Modifier and Type Method Description voidcompileFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler)Performs the first pass of compilation on an XML tag from a JAXX source file.voidcompileSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler)Performs the second pass of compilation on an XML tag from a JAXX source file.
-
Field Details
-
XMLNS_ATTRIBUTE
static final java.lang.String XMLNS_ATTRIBUTE- See Also:
- Constant Field Values
-
-
Method Details
-
compileFirstPass
void compileFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOExceptionPerforms the first pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursjava.io.IOException- if an I/O error occurs
-
compileSecondPass
void compileSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOExceptionPerforms the second pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursjava.io.IOException- if an I/O error occurs
-