Package org.jibx.schema.validation
Class NameRegistrationVisitor
- java.lang.Object
-
- org.jibx.schema.SchemaVisitor
-
- org.jibx.schema.validation.NameRegistrationVisitor
-
public class NameRegistrationVisitor extends SchemaVisitor
Visitor for handling the registration of global definitions. This records the names for each child element of the schema in the validation context. This must be run afterPrevalidationVisitor.
-
-
Constructor Summary
Constructors Constructor Description NameRegistrationVisitor(ValidationContext context)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvisit(AttributeElement node)Visit attribute element.booleanvisit(AttributeGroupElement node)Visit attributeGroup element for definition.booleanvisit(ComplexTypeElement node)Visit complexType element.booleanvisit(ElementElement node)Visit element element.booleanvisit(GroupElement node)Visit group element for definition.booleanvisit(SchemaBase node)Visit element.booleanvisit(SchemaElement node)Visit schema element.booleanvisit(SchemaLocationBase node)Visit schema location element.booleanvisit(SimpleTypeElement node)Visit simpleType element.-
Methods inherited from class org.jibx.schema.SchemaVisitor
exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, exit, 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, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
NameRegistrationVisitor
public NameRegistrationVisitor(ValidationContext context)
Constructor.- Parameters:
context- Validation Context
-
-
Method Detail
-
visit
public boolean visit(SchemaBase node)
Description copied from class:SchemaVisitorVisit element. This method will be called for every element in the model. The default implementation just returnstrueto continue expansion of the tree.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(AttributeElement node)
Description copied from class:SchemaVisitorVisit attribute element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(AttributeGroupElement node)
Description copied from class:SchemaVisitorVisit attributeGroup element for definition.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(ComplexTypeElement node)
Description copied from class:SchemaVisitorVisit complexType element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(ElementElement node)
Description copied from class:SchemaVisitorVisit element element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(GroupElement node)
Description copied from class:SchemaVisitorVisit group element for definition.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(SchemaElement node)
Description copied from class:SchemaVisitorVisit schema element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(SchemaLocationBase node)
Description copied from class:SchemaVisitorVisit schema location element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
visit
public boolean visit(SimpleTypeElement node)
Description copied from class:SchemaVisitorVisit simpleType element.- Overrides:
visitin classSchemaVisitor- Parameters:
node- element being visited- Returns:
trueif children to be processed,falseif not
-
-