Package org.jibx.binding.model
Class RegistrationVisitor
java.lang.Object
org.jibx.binding.model.ModelVisitor
org.jibx.binding.model.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.- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ValidationContextValidation context running this visitor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvisit(ContainerElementBase node) Visit container element.booleanvisit(MappingElementBase node) Visit mapping element.booleanvisit(TemplateElementBase node) Visit template element.voidvisitTree(ElementBase root) Visit binding model tree to handle registration.
-
Field Details
-
m_context
Validation context running this visitor.
-
-
Constructor Details
-
RegistrationVisitor
Constructor.- Parameters:
vctx- validation context that will run this visitor
-
-
Method Details
-
visitTree
Visit binding model tree to handle registration.- Parameters:
root- node of tree to be visited
-
visit
Description copied from class:ModelVisitorVisit container element. This method will be called for any form of container element.- Overrides:
visitin classModelVisitor- Parameters:
node- container element being visited- Returns:
trueif children to be processed,falseif not
-
visit
Description copied from class:ModelVisitorVisit template element. This method will be called for any form of template element.- Overrides:
visitin classModelVisitor- Parameters:
node- template element being visited- Returns:
trueif children to be processed,falseif not
-
visit
Description copied from class:ModelVisitorVisit mapping element.- Overrides:
visitin classModelVisitor- Parameters:
node- mapping element being visited- Returns:
trueif children to be processed,falseif not
-