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
.
-
-
Field Summary
Fields Modifier and Type Field Description private ValidationContext
m_context
Validation context.
-
Constructor Summary
Constructors Constructor Description NameRegistrationVisitor(ValidationContext context)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(AttributeElement node)
Visit attribute element.boolean
visit(AttributeGroupElement node)
Visit attributeGroup element for definition.boolean
visit(ComplexTypeElement node)
Visit complexType element.boolean
visit(ElementElement node)
Visit element element.boolean
visit(GroupElement node)
Visit group element for definition.boolean
visit(SchemaBase node)
Visit element.boolean
visit(SchemaElement node)
Visit schema element.boolean
visit(SchemaLocationBase node)
Visit schema location element.boolean
visit(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
-
-
-
-
Field Detail
-
m_context
private final ValidationContext m_context
Validation context.
-
-
Constructor Detail
-
NameRegistrationVisitor
public NameRegistrationVisitor(ValidationContext context)
Constructor.- Parameters:
context
-
-
-
Method Detail
-
visit
public boolean visit(SchemaBase node)
Description copied from class:SchemaVisitor
Visit element. This method will be called for every element in the model. The default implementation just returnstrue
to continue expansion of the tree.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(AttributeElement node)
Description copied from class:SchemaVisitor
Visit attribute element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(AttributeGroupElement node)
Description copied from class:SchemaVisitor
Visit attributeGroup element for definition.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(ComplexTypeElement node)
Description copied from class:SchemaVisitor
Visit complexType element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(ElementElement node)
Description copied from class:SchemaVisitor
Visit element element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(GroupElement node)
Description copied from class:SchemaVisitor
Visit group element for definition.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(SchemaElement node)
Description copied from class:SchemaVisitor
Visit schema element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(SchemaLocationBase node)
Description copied from class:SchemaVisitor
Visit schema location element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
visit
public boolean visit(SimpleTypeElement node)
Description copied from class:SchemaVisitor
Visit simpleType element.- Overrides:
visit
in classSchemaVisitor
- Parameters:
node
- element being visited- Returns:
true
if children to be processed,false
if not
-
-