public class SchemaWriter extends java.lang.Object implements XSVisitor, XSSimpleTypeVisitor
Modifier and Type | Field and Description |
---|---|
private boolean |
hadError
If IOException is encountered, this flag is set to true.
|
private int |
indent
indentation.
|
private java.io.Writer |
out
output is sent to this object.
|
private static XSWildcardFunction<java.lang.String> |
WILDCARD_NS |
Constructor and Description |
---|
SchemaWriter(java.io.Writer _out) |
private final java.io.Writer out
private int indent
private boolean hadError
private static final XSWildcardFunction<java.lang.String> WILDCARD_NS
private void println(java.lang.String s)
private void println()
public boolean checkError()
public void visit(XSSchemaSet s)
public void attGroupDecl(XSAttGroupDecl decl)
attGroupDecl
in interface XSVisitor
public void dumpRef(XSAttGroupDecl decl)
public void attributeUse(XSAttributeUse use)
attributeUse
in interface XSVisitor
public void attributeDecl(XSAttributeDecl decl)
attributeDecl
in interface XSVisitor
private void dump(XSAttributeDecl decl, java.lang.String additionalAtts)
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 notation(XSNotation notation)
public void complexType(XSComplexType type)
complexType
in interface XSVisitor
private void dumpComplexTypeAttribute(XSComplexType type)
public void elementDecl(XSElementDecl decl)
elementDecl
in interface XSTermVisitor
private void elementDecl(XSElementDecl decl, java.lang.String extraAtts)
public void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl
in interface XSTermVisitor
public void modelGroup(XSModelGroup group)
modelGroup
in interface XSTermVisitor
private void modelGroup(XSModelGroup group, java.lang.String extraAtts)
public void particle(XSParticle part)
particle
in interface XSContentTypeVisitor
public void wildcard(XSWildcard wc)
wildcard
in interface XSTermVisitor
private void wildcard(java.lang.String tagName, XSWildcard wc, java.lang.String extraAtts)
public void annotation(XSAnnotation ann)
annotation
in interface XSVisitor
public void identityConstraint(XSIdentityConstraint decl)
identityConstraint
in interface XSVisitor
public void empty(XSContentType t)
empty
in interface XSContentTypeVisitor