|
XSOM 20110809-redhat-3 | |||||||||
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 XSVisitor
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
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 facet(XSFacet facet)
facet
in interface XSVisitor
public void notation(XSNotation notation)
notation
in interface XSVisitor
public void complexType(XSComplexType type)
complexType
in interface XSVisitor
public void elementDecl(XSElementDecl decl)
elementDecl
in interface XSTermVisitor
public void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl
in interface XSTermVisitor
public void modelGroup(XSModelGroup group)
modelGroup
in interface XSTermVisitor
public void particle(XSParticle part)
particle
in interface XSContentTypeVisitor
public void wildcard(XSWildcard wc)
wildcard
in interface XSTermVisitor
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
public void xpath(XSXPath xp)
xpath
in interface XSVisitor
|
XSOM 20110809-redhat-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |