资 源 简 介
Moved to GitHub
Seems like all the cools kids are moving to Git Hub.
https://github.com/massfords/jaxb-visitor
Changes in 2.0
Version 2.0 of the plugin incorporates the patch from Issue #18 which changes the code generator to produce a Visitor and supporting classes that have a return type and an Exception on each visit method.
What it does
This plugin adds the visitor pattern that includes all of the JAXB objects produced by the xjc compiler. The plugin produces the following changes in the beans:
add accept(Visitor) to each bean that invokes appropriate method on Visitor interface
create Visitor interface with visit method for each bean
create Traverser interface for traversing the graph with a Visitor
create DepthFirstTraverser class as a sample implementation of performing a depth first traversal of the gra