public class SchemaWriter
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static boolean |
enable |
Deprecated.
|
Constructor | Description |
---|---|
SchemaWriter() |
A constructor to create an empty uninitialized SchemaWriter via XMLContext.
|
SchemaWriter(java.io.Writer writer) |
Creates a new SchemaWriter for the given Writer.
|
SchemaWriter(org.xml.sax.DocumentHandler handler) |
Creates a new SchemaWriter for the given DocumentHandler.
|
Modifier and Type | Method | Description |
---|---|---|
void |
setDocumentHandler(java.io.Writer writer) |
To set the DocumentHandler to a Writer - which is wrapped by a serializer.
|
void |
setDocumentHandler(org.xml.sax.DocumentHandler documentHandler) |
To directly set a DocumentHandler.
|
void |
setSchemaContext(SchemaContext schemaContext) |
To set the
SchemaContext to be used for the SchemaWriter . |
void |
write(Schema schema) |
public static boolean enable
public SchemaWriter(java.io.Writer writer) throws java.io.IOException
writer
- the Writer to serialize tojava.io.IOException
- in case taht wrapping the Writer failspublic SchemaWriter(org.xml.sax.DocumentHandler handler)
handler
- the DocumentHandler to send events topublic SchemaWriter()
public void setSchemaContext(SchemaContext schemaContext)
SchemaContext
to be used for the SchemaWriter
.schemaContext
- the SchemaContext
to be usedpublic void setDocumentHandler(java.io.Writer writer) throws java.io.IOException
writer
- the Writer to use for outputjava.io.IOException
- in case the Writer cannot be used for DocumentHandlerpublic void setDocumentHandler(org.xml.sax.DocumentHandler documentHandler)
documentHandler
- set the DocumentHandlerpublic void write(Schema schema) throws org.xml.sax.SAXException
org.xml.sax.SAXException
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com