Package com.sun.xml.xsom.impl.util
Class SchemaWriter
java.lang.Object
com.sun.xml.xsom.impl.util.SchemaWriter
- All Implemented Interfaces:
XSContentTypeVisitor,XSSimpleTypeVisitor,XSTermVisitor,XSVisitor
Generates approximated XML Schema representation from
a schema component. This is not intended to be a fully-fledged
round-trippable schema writer.
Usage of this class
- Create a new instance with whatever Writer you'd like to send the output to.
- Call one of the overloaded dump methods. You can repeat this process as many times as you want.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Kirill Grouchnikov (kirillcool@yahoo.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannotation(XSAnnotation ann) voidattGroupDecl(XSAttGroupDecl decl) voidattributeDecl(XSAttributeDecl decl) voidbooleanFlush the stream and check its error state.voidcomplexType(XSComplexType type) voiddumpRef(XSAttGroupDecl decl) voidelementDecl(XSElementDecl decl) voidvoidvoidvoidvoidmodelGroup(XSModelGroup group) voidvoidnotation(XSNotation notation) voidparticle(XSParticle part) voidvoidvoidsimpleType(XSSimpleType type) voidvoidvisit(XSSchemaSet s) voidwildcard(XSWildcard wc) void
-
Constructor Details
-
SchemaWriter
-
-
Method Details
-
checkError
public boolean checkError()Flush the stream and check its error state. -
visit
-
schema
-
attGroupDecl
- Specified by:
attGroupDeclin interfaceXSVisitor
-
dumpRef
-
attributeUse
- Specified by:
attributeUsein interfaceXSVisitor
-
attributeDecl
- Specified by:
attributeDeclin interfaceXSVisitor
-
simpleType
- Specified by:
simpleTypein interfaceXSContentTypeVisitor
-
listSimpleType
- Specified by:
listSimpleTypein interfaceXSSimpleTypeVisitor
-
unionSimpleType
- Specified by:
unionSimpleTypein interfaceXSSimpleTypeVisitor
-
restrictionSimpleType
- Specified by:
restrictionSimpleTypein interfaceXSSimpleTypeVisitor
-
facet
-
notation
-
complexType
- Specified by:
complexTypein interfaceXSVisitor
-
elementDecl
- Specified by:
elementDeclin interfaceXSTermVisitor
-
modelGroupDecl
- Specified by:
modelGroupDeclin interfaceXSTermVisitor
-
modelGroup
- Specified by:
modelGroupin interfaceXSTermVisitor
-
particle
- Specified by:
particlein interfaceXSContentTypeVisitor
-
wildcard
- Specified by:
wildcardin interfaceXSTermVisitor
-
annotation
- Specified by:
annotationin interfaceXSVisitor
-
identityConstraint
- Specified by:
identityConstraintin interfaceXSVisitor
-
xpath
-
empty
- Specified by:
emptyin interfaceXSContentTypeVisitor
-