|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.SchemaVisitor
org.jibx.schema.validation.RegistrationVisitor
public class RegistrationVisitor
Visitor for handling registration. This records the names for each child element of the schema in the validation context. TODO: need to implement two-pass handling, the first to get the definitions and the second to handle the imports, so that circular imports will be processed correctly.
Field Summary | |
---|---|
private ValidationContext |
m_context
Validation context. |
Constructor Summary | |
---|---|
RegistrationVisitor(ValidationContext context)
Constructor. |
Method Summary | |
---|---|
void |
exit(SchemaLocationBase node)
Exit schema location element. |
void |
run(SchemaElement root,
TreeWalker tctx)
Run registration. |
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, 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 |
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 context)
context
- Method Detail |
---|
public void run(SchemaElement root, TreeWalker tctx)
root
- schema element to be validatedtctx
- tree contextpublic boolean visit(SchemaBase node)
SchemaVisitor
true
to continue expansion of the tree.
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(AttributeElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(AttributeGroupElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(ComplexTypeElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(ElementElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(GroupElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(SchemaElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(SchemaLocationBase node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic boolean visit(SimpleTypeElement node)
SchemaVisitor
visit
in class SchemaVisitor
node
- element being visited
true
if children to be processed, false
if notpublic void exit(SchemaLocationBase node)
SchemaVisitor
exit
in class SchemaVisitor
node
- element being exited
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |