public class XMLInstance2Schema
extends java.lang.Object
| Constructor | Description |
|---|---|
XMLInstance2Schema() |
Creates a new XMLInstance2Schema
|
| Modifier and Type | Method | Description |
|---|---|---|
Schema |
createSchema(java.io.Reader reader) |
Creates an XML Schema using the given Reader.
|
Schema |
createSchema(java.lang.String filename) |
Creates an XML Schema using the given XML instance filename.
|
Schema |
createSchema(org.xml.sax.InputSource source) |
Creates an XML Schema using the given InputSource.
|
static void |
main(java.lang.String[] args) |
For testing purposes only.
|
void |
serializeSchema(java.io.Writer dstWriter,
Schema schema) |
Serializes a
Schema instance to the given Writer instance. |
void |
setDefaultGroupingAsAll() |
Sets the default grouping as "all".
|
public Schema createSchema(java.lang.String filename) throws java.io.IOException
filename - the filename for the XML documentjava.io.IOExceptionpublic Schema createSchema(java.io.Reader reader) throws java.io.IOException
reader - the Reader for the XML documentjava.io.IOExceptionpublic Schema createSchema(org.xml.sax.InputSource source) throws java.io.IOException
source - the InputSource for the XML documentjava.io.IOExceptionpublic void setDefaultGroupingAsAll()
public void serializeSchema(java.io.Writer dstWriter,
Schema schema)
throws java.io.IOException,
org.xml.sax.SAXException
Schema instance to the given Writer instance.dstWriter - The Writer instance to output the XML schema to.schema - The XML Schema instance to be output.java.io.IOException - If there's a problem related to writing to the given Writer instance.org.xml.sax.SAXException - If there's a problem related to SAX streaming.public static void main(java.lang.String[] args)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com