org.exolab.castor.xml.schema.writer
Class SchemaWriter
java.lang.Objectorg.exolab.castor.xml.schema.writer.SchemaWriter
public class SchemaWriter
extends java.lang.Object
A class for serializing Schema models.
$Revision: 7410 $ $Date: 2006-04-05 13:16:42 -0600 (Wed, 05 Apr 2006) $
SchemaWriter()- A constructor to create an empty uninitialized SchemaWriter via XMLContext.
|
SchemaWriter(DocumentHandler handler)- Creates a new SchemaWriter for the given DocumentHandler.
|
SchemaWriter(Writer writer)- Creates a new SchemaWriter for the given Writer.
|
enable
public static boolean enable
This field is no longer used and only here for
backward compatibility.
SchemaWriter
public SchemaWriter()
A constructor to create an empty uninitialized SchemaWriter via XMLContext.
SchemaWriter
public SchemaWriter(DocumentHandler handler)
Creates a new SchemaWriter for the given DocumentHandler.
handler - the DocumentHandler to send events to
SchemaWriter
public SchemaWriter(Writer writer)
throws IOException Creates a new SchemaWriter for the given Writer.
writer - the Writer to serialize to
setDocumentHandler
public void setDocumentHandler(DocumentHandler documentHandler)
To directly set a DocumentHandler.
documentHandler - set the DocumentHandler
setDocumentHandler
public void setDocumentHandler(Writer writer)
throws IOException To set the DocumentHandler to a Writer - which is wrapped by a serializer.
writer - the Writer to use for output
setSchemaContext
public void setSchemaContext(SchemaContext schemaContext)
write
public void write(Schema schema)
throws SAXException
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com