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
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
- 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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaWriter
public SchemaWriter(Writer _out)
checkError
public boolean checkError()
- Flush the stream and check its error state.
visit
public void visit(XSSchemaSet s)
schema
public void schema(XSSchema s)
- Specified by:
schema in interface XSVisitor
attGroupDecl
public void attGroupDecl(XSAttGroupDecl decl)
- Specified by:
attGroupDecl in interface XSVisitor
dumpRef
public void dumpRef(XSAttGroupDecl decl)
attributeUse
public void attributeUse(XSAttributeUse use)
- Specified by:
attributeUse in interface XSVisitor
attributeDecl
public void attributeDecl(XSAttributeDecl decl)
- Specified by:
attributeDecl in interface XSVisitor
simpleType
public void simpleType(XSSimpleType type)
- Specified by:
simpleType in interface XSContentTypeVisitor
listSimpleType
public void listSimpleType(XSListSimpleType type)
- Specified by:
listSimpleType in interface XSSimpleTypeVisitor
unionSimpleType
public void unionSimpleType(XSUnionSimpleType type)
- Specified by:
unionSimpleType in interface XSSimpleTypeVisitor
restrictionSimpleType
public void restrictionSimpleType(XSRestrictionSimpleType type)
- Specified by:
restrictionSimpleType in interface XSSimpleTypeVisitor
facet
public void facet(XSFacet facet)
- Specified by:
facet in interface XSVisitor
notation
public void notation(XSNotation notation)
- Specified by:
notation in interface XSVisitor
complexType
public void complexType(XSComplexType type)
- Specified by:
complexType in interface XSVisitor
elementDecl
public void elementDecl(XSElementDecl decl)
- Specified by:
elementDecl in interface XSTermVisitor
modelGroupDecl
public void modelGroupDecl(XSModelGroupDecl decl)
- Specified by:
modelGroupDecl in interface XSTermVisitor
modelGroup
public void modelGroup(XSModelGroup group)
- Specified by:
modelGroup in interface XSTermVisitor
particle
public void particle(XSParticle part)
- Specified by:
particle in interface XSContentTypeVisitor
wildcard
public void wildcard(XSWildcard wc)
- Specified by:
wildcard in interface XSTermVisitor
annotation
public void annotation(XSAnnotation ann)
- Specified by:
annotation in interface XSVisitor
identityConstraint
public void identityConstraint(XSIdentityConstraint decl)
- Specified by:
identityConstraint in interface XSVisitor
xpath
public void xpath(XSXPath xp)
- Specified by:
xpath in interface XSVisitor
empty
public void empty(XSContentType t)
- Specified by:
empty in interface XSContentTypeVisitor
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.