public class RegistrationVisitor extends ModelVisitor
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.| Constructor and Description |
|---|
RegistrationVisitor(ValidationContext vctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public RegistrationVisitor(ValidationContext vctx)
vctx - validation context that will run this visitorpublic void visitTree(ElementBase root)
root - node of tree to be visitedpublic boolean visit(ContainerElementBase node)
ModelVisitorvisit in class ModelVisitornode - container element being visitedtrue if children to be processed, false
if notpublic boolean visit(TemplateElementBase node)
ModelVisitorvisit in class ModelVisitornode - template element being visitedtrue if children to be processed, false
if notpublic boolean visit(MappingElementBase node)
ModelVisitorvisit in class ModelVisitornode - mapping element being visitedtrue if children to be processed, false
if notCopyright © 2005–2016 jibx.org. All rights reserved.