|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.xsom.impl.util.SchemaTreeTraverser
public class SchemaTreeTraverser
Generates approximated tree model for XML from a schema component. This is not intended to be a fully-fledged round-trippable tree model.
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.
| Nested Class Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
SchemaTreeTraverser()
Simple constructor. |
|
| Method Summary | |
|---|---|
void |
annotation(XSAnnotation ann)
|
void |
attGroupDecl(XSAttGroupDecl decl)
|
void |
attributeDecl(XSAttributeDecl decl)
|
void |
attributeUse(XSAttributeUse use)
|
void |
complexType(XSComplexType type)
|
void |
dumpRef(XSAttGroupDecl decl)
Creates node of attribute group decalration reference. |
void |
elementDecl(XSElementDecl decl)
|
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)
|
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)
|
void |
xpath(XSXPath xp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaTreeTraverser()
| Method Detail |
|---|
public SchemaTreeTraverser.SchemaTreeModel getModel()
this traverser.
this traverser.public void visit(XSSchemaSet s)
s - Root schema set.public void schema(XSSchema s)
schema in interface XSVisitorpublic 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 XSVisitorpublic 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 facet(XSFacet facet)
facet in interface XSVisitorpublic void notation(XSNotation notation)
notation in interface XSVisitorpublic void complexType(XSComplexType type)
complexType in interface XSVisitorpublic void elementDecl(XSElementDecl decl)
elementDecl in interface XSTermVisitorpublic void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl in interface XSTermVisitorpublic void modelGroup(XSModelGroup group)
modelGroup in interface XSTermVisitorpublic void particle(XSParticle part)
particle in interface XSContentTypeVisitorpublic void wildcard(XSWildcard wc)
wildcard in interface XSTermVisitorpublic void annotation(XSAnnotation ann)
annotation in interface XSVisitorpublic void empty(XSContentType t)
empty in interface XSContentTypeVisitorpublic void identityConstraint(XSIdentityConstraint ic)
identityConstraint in interface XSVisitorpublic void xpath(XSXPath xp)
xpath in interface XSVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||