Class SchemaWriter

java.lang.Object
com.sun.xml.xsom.impl.util.SchemaWriter
All Implemented Interfaces:
XSContentTypeVisitor, XSSimpleTypeVisitor, XSTermVisitor, XSVisitor

public class SchemaWriter extends Object implements XSVisitor, XSSimpleTypeVisitor
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

  1. Create a new instance with whatever Writer you'd like to send the output to.
  2. 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)