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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
annotation
(XSAnnotation ann) void
attGroupDecl
(XSAttGroupDecl decl) void
attributeDecl
(XSAttributeDecl decl) void
boolean
Flush the stream and check its error state.void
complexType
(XSComplexType type) void
dumpRef
(XSAttGroupDecl decl) void
elementDecl
(XSElementDecl decl) void
void
void
void
void
modelGroup
(XSModelGroup group) void
void
notation
(XSNotation notation) void
particle
(XSParticle part) void
void
void
simpleType
(XSSimpleType type) void
void
visit
(XSSchemaSet s) void
wildcard
(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:
attGroupDecl
in interfaceXSVisitor
-
dumpRef
-
attributeUse
- Specified by:
attributeUse
in interfaceXSVisitor
-
attributeDecl
- Specified by:
attributeDecl
in interfaceXSVisitor
-
simpleType
- Specified by:
simpleType
in interfaceXSContentTypeVisitor
-
listSimpleType
- Specified by:
listSimpleType
in interfaceXSSimpleTypeVisitor
-
unionSimpleType
- Specified by:
unionSimpleType
in interfaceXSSimpleTypeVisitor
-
restrictionSimpleType
- Specified by:
restrictionSimpleType
in interfaceXSSimpleTypeVisitor
-
facet
-
notation
-
complexType
- Specified by:
complexType
in interfaceXSVisitor
-
elementDecl
- Specified by:
elementDecl
in interfaceXSTermVisitor
-
modelGroupDecl
- Specified by:
modelGroupDecl
in interfaceXSTermVisitor
-
modelGroup
- Specified by:
modelGroup
in interfaceXSTermVisitor
-
particle
- Specified by:
particle
in interfaceXSContentTypeVisitor
-
wildcard
- Specified by:
wildcard
in interfaceXSTermVisitor
-
annotation
- Specified by:
annotation
in interfaceXSVisitor
-
identityConstraint
- Specified by:
identityConstraint
in interfaceXSVisitor
-
xpath
-
empty
- Specified by:
empty
in interfaceXSContentTypeVisitor
-