public class SchemaTreeTraverser extends java.lang.Object implements XSVisitor, XSSimpleTypeVisitor
visit(com.sun.xml.xsom.XSSchemaSet) function on your schema set.>/li>
getModel(). SchemaTreeTraverser.SchemaTreeNode,
and the model itself is SchemaTreeTraverser.SchemaTreeModel. You can
use SchemaTreeTraverser.SchemaTreeCellRenderer as a cell renderer for
your tree.| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaTreeTraverser.SchemaRootNode
The root node of the schema hierarchy tree.
|
static class |
SchemaTreeTraverser.SchemaTreeCellRenderer
Sample cell renderer for the schema tree.
|
static class |
SchemaTreeTraverser.SchemaTreeModel
Tree model for schema hierarchy tree.
|
static class |
SchemaTreeTraverser.SchemaTreeNode
The node of the schema hierarchy tree.
|
| Modifier and Type | Field and Description |
|---|---|
private SchemaTreeTraverser.SchemaTreeNode |
currNode
The current node in the tree.
|
private SchemaTreeTraverser.SchemaTreeModel |
model
The associated tree model.
|
| Constructor and Description |
|---|
SchemaTreeTraverser()
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
annotation(XSAnnotation ann) |
void |
attGroupDecl(XSAttGroupDecl decl) |
void |
attributeDecl(XSAttributeDecl decl) |
void |
attributeUse(XSAttributeUse use) |
void |
complexType(XSComplexType type) |
private void |
dump(XSAttributeDecl decl,
java.lang.String additionalAtts)
Creates node for attribute declaration with additional attributes.
|
private void |
dumpComplexTypeAttribute(XSComplexType type)
Creates node for complex type.
|
void |
dumpRef(XSAttGroupDecl decl)
Creates node of attribute group decalration reference.
|
void |
elementDecl(XSElementDecl decl) |
private void |
elementDecl(XSElementDecl decl,
java.lang.String extraAtts)
Creates node for element declaration with additional attributes.
|
void |
empty(XSContentType t) |
void |
facet(XSFacet facet) |
SchemaTreeTraverser.SchemaTreeModel |
getModel()
Retrieves the tree model of
this traverser. |
void |
identityConstraint(XSIdentityConstraint ic) |
void |
listSimpleType(XSListSimpleType type) |
void |
modelGroup(XSModelGroup group) |
private void |
modelGroup(XSModelGroup group,
java.lang.String extraAtts)
Creates node for model group with additional attributes.
|
void |
modelGroupDecl(XSModelGroupDecl decl) |
void |
notation(XSNotation notation) |
void |
particle(XSParticle part) |
void |
restrictionSimpleType(XSRestrictionSimpleType type) |
void |
schema(XSSchema s) |
void |
simpleType(XSSimpleType type) |
void |
unionSimpleType(XSUnionSimpleType type) |
void |
visit(XSSchemaSet s)
Visits the root schema set.
|
void |
wildcard(XSWildcard wc) |
private void |
wildcard(XSWildcard wc,
java.lang.String extraAtts)
Creates node for wild card with additional attributes.
|
void |
xpath(XSXPath xp) |
private SchemaTreeTraverser.SchemaTreeModel model
private SchemaTreeTraverser.SchemaTreeNode currNode
public SchemaTreeTraverser.SchemaTreeModel getModel()
this traverser.this traverser.public void visit(XSSchemaSet s)
s - Root schema set.public void attGroupDecl(XSAttGroupDecl decl)
attGroupDecl in interface XSVisitorpublic void dumpRef(XSAttGroupDecl decl)
decl - Attribute group decalration reference.public void attributeUse(XSAttributeUse use)
attributeUse in interface XSVisitorpublic void attributeDecl(XSAttributeDecl decl)
attributeDecl in interface XSVisitorprivate void dump(XSAttributeDecl decl, java.lang.String additionalAtts)
decl - Attribute declaration.additionalAtts - Additional attributes.public void simpleType(XSSimpleType type)
simpleType in interface XSContentTypeVisitorpublic void listSimpleType(XSListSimpleType type)
listSimpleType in interface XSSimpleTypeVisitorpublic void unionSimpleType(XSUnionSimpleType type)
unionSimpleType in interface XSSimpleTypeVisitorpublic void restrictionSimpleType(XSRestrictionSimpleType type)
restrictionSimpleType in interface XSSimpleTypeVisitorpublic void notation(XSNotation notation)
public void complexType(XSComplexType type)
complexType in interface XSVisitorprivate void dumpComplexTypeAttribute(XSComplexType type)
type - Complex type.public void elementDecl(XSElementDecl decl)
elementDecl in interface XSTermVisitorprivate void elementDecl(XSElementDecl decl, java.lang.String extraAtts)
decl - Element declaration.extraAtts - Additional attributes.public void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl in interface XSTermVisitorpublic void modelGroup(XSModelGroup group)
modelGroup in interface XSTermVisitorprivate void modelGroup(XSModelGroup group, java.lang.String extraAtts)
group - Model group.extraAtts - Additional attributes.public void particle(XSParticle part)
particle in interface XSContentTypeVisitorpublic void wildcard(XSWildcard wc)
wildcard in interface XSTermVisitorprivate void wildcard(XSWildcard wc, java.lang.String extraAtts)
wc - Wild card.extraAtts - Additional attributes.public void annotation(XSAnnotation ann)
annotation in interface XSVisitorpublic void empty(XSContentType t)
empty in interface XSContentTypeVisitorpublic void identityConstraint(XSIdentityConstraint ic)
identityConstraint in interface XSVisitor