|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.model.ModelVisitor
org.jibx.binding.model.RegistrationVisitor
public class RegistrationVisitor
Model visitor for handling item registration. This works with the ValidationContext
class to handle registration of
items which can be referenced by name or by function (such as ID values
within an object structure). The only items of this type which are not
handled by this visitor are format definitions. The formats need to be
accessed during prevalidation, so they're registered during that pass.
Field Summary | |
---|---|
private ValidationContext |
m_context
Validation context running this visitor. |
Constructor Summary | |
---|---|
RegistrationVisitor(ValidationContext vctx)
Constructor. |
Method Summary | |
---|---|
boolean |
visit(ContainerElementBase node)
Visit container element. |
boolean |
visit(MappingElementBase node)
Visit mapping element. |
boolean |
visit(TemplateElementBase node)
Visit template element. |
void |
visitTree(ElementBase root)
Visit binding model tree to handle registration. |
Methods inherited from class org.jibx.binding.model.ModelVisitor |
---|
exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ValidationContext m_context
Constructor Detail |
---|
public RegistrationVisitor(ValidationContext vctx)
vctx
- validation context that will run this visitorMethod Detail |
---|
public void visitTree(ElementBase root)
root
- node of tree to be visitedpublic boolean visit(ContainerElementBase node)
ModelVisitor
visit
in class ModelVisitor
node
- container element being visited
true
if children to be processed, false
if notpublic boolean visit(TemplateElementBase node)
ModelVisitor
visit
in class ModelVisitor
node
- template element being visited
true
if children to be processed, false
if notpublic boolean visit(MappingElementBase node)
ModelVisitor
visit
in class ModelVisitor
node
- mapping element being visited
true
if children to be processed, false
if not
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |