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 XSVisitorpublic void dumpRef(XSAttGroupDecl decl)
public void attributeUse(XSAttributeUse use)
attributeUse in interface XSVisitorpublic void attributeDecl(XSAttributeDecl decl)
attributeDecl in interface XSVisitorprivate void dump(XSAttributeDecl decl, java.lang.String additionalAtts)
public void simpleType(XSSimpleType type)
simpleType in interface XSContentTypeVisitorpublic void listSimpleType(XSListSimpleType type)
listSimpleType in interface XSSimpleTypeVisitorpublic void unionSimpleType(XSUnionSimpleType type)
unionSimpleType in interface XSSimpleTypeVisitorpublic void restrictionSimpleType(XSRestrictionSimpleType type)
restrictionSimpleType in interface XSSimpleTypeVisitorpublic void notation(XSNotation notation)
public void complexType(XSComplexType type)
complexType in interface XSVisitorprivate void dumpComplexTypeAttribute(XSComplexType type)
public void elementDecl(XSElementDecl decl)
elementDecl in interface XSTermVisitorprivate void elementDecl(XSElementDecl decl, java.lang.String extraAtts)
public void modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl in interface XSTermVisitorpublic void modelGroup(XSModelGroup group)
modelGroup in interface XSTermVisitorprivate void modelGroup(XSModelGroup group, java.lang.String extraAtts)
public void particle(XSParticle part)
particle in interface XSContentTypeVisitorpublic void wildcard(XSWildcard wc)
wildcard in interface XSTermVisitorprivate void wildcard(java.lang.String tagName,
XSWildcard wc,
java.lang.String extraAtts)
public void annotation(XSAnnotation ann)
annotation in interface XSVisitorpublic void identityConstraint(XSIdentityConstraint decl)
identityConstraint in interface XSVisitorpublic void empty(XSContentType t)
empty in interface XSContentTypeVisitor