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 XSVisitor
public void dumpRef(XSAttGroupDecl decl)
decl
- Attribute group decalration reference.public void attributeUse(XSAttributeUse use)
attributeUse
in interface XSVisitor
public void attributeDecl(XSAttributeDecl decl)
attributeDecl
in interface XSVisitor
private void dump(XSAttributeDecl decl, java.lang.String additionalAtts)
decl
- Attribute declaration.additionalAtts
- Additional attributes.public void simpleType(XSSimpleType type)
simpleType
in interface XSContentTypeVisitor
public void listSimpleType(XSListSimpleType type)
listSimpleType
in interface XSSimpleTypeVisitor
public void unionSimpleType(XSUnionSimpleType type)
unionSimpleType
in interface XSSimpleTypeVisitor
public void restrictionSimpleType(XSRestrictionSimpleType type)
restrictionSimpleType
in interface XSSimpleTypeVisitor
public void notation(XSNotation notation)
public void complexType(XSComplexType type)
complexType
in interface XSVisitor
private void dumpComplexTypeAttribute(XSComplexType type)
type
- Complex type.public void elementDecl(XSElementDecl decl)
elementDecl
in interface XSTermVisitor
private void elementDecl(XSElementDecl decl, java.lang.String extraAtts)
decl
- Element declaration.extraAtts
- Additional attributes.public void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl
in interface XSTermVisitor
public void modelGroup(XSModelGroup group)
modelGroup
in interface XSTermVisitor
private void modelGroup(XSModelGroup group, java.lang.String extraAtts)
group
- Model group.extraAtts
- Additional attributes.public void particle(XSParticle part)
particle
in interface XSContentTypeVisitor
public void wildcard(XSWildcard wc)
wildcard
in interface XSTermVisitor
private void wildcard(XSWildcard wc, java.lang.String extraAtts)
wc
- Wild card.extraAtts
- Additional attributes.public void annotation(XSAnnotation ann)
annotation
in interface XSVisitor
public void empty(XSContentType t)
empty
in interface XSContentTypeVisitor
public void identityConstraint(XSIdentityConstraint ic)
identityConstraint
in interface XSVisitor