|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.writer.SchemaWriter
public class SchemaWriter
A class for serializing Schema models.
| Field Summary | |
|---|---|
static boolean |
enable
Deprecated. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
setDocumentHandler(DocumentHandler documentHandler)
To directly set a DocumentHandler. |
void |
setDocumentHandler(Writer writer)
To set the DocumentHandler to a Writer - which is wrapped by a serializer. |
void |
setSchemaContext(SchemaContext schemaContext)
To set the SchemaContext to be used for the SchemaWriter. |
void |
write(Schema schema)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean enable
| Constructor Detail |
|---|
public SchemaWriter(Writer writer)
throws IOException
writer - the Writer to serialize to
IOException - in case taht wrapping the Writer failspublic SchemaWriter(DocumentHandler handler)
handler - the DocumentHandler to send events topublic SchemaWriter()
| Method Detail |
|---|
public void setSchemaContext(SchemaContext schemaContext)
SchemaContext to be used for the SchemaWriter.
schemaContext - the SchemaContext to be used
public void setDocumentHandler(Writer writer)
throws IOException
writer - the Writer to use for output
IOException - in case the Writer cannot be used for DocumentHandlerpublic void setDocumentHandler(DocumentHandler documentHandler)
documentHandler - set the DocumentHandler
public void write(Schema schema)
throws SAXException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||