org.exolab.castor.xml.schema.util
Class XMLInstance2Schema

java.lang.Object
  extended by org.exolab.castor.xml.schema.util.XMLInstance2Schema

public class XMLInstance2Schema
extends java.lang.Object

A class for reading XML Schemas

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:45 $
Author:
Keith Visco

Constructor Summary
XMLInstance2Schema()
          Creates a new XMLInstance2Schema
 
Method Summary
 Schema createSchema(org.xml.sax.InputSource source)
          Creates an XML Schema using the given InputSource.
 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.
static void main(java.lang.String[] args)
          For testing purposes only
 void setDefaultGroupingAsAll()
          Sets the default grouping as "all".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLInstance2Schema

public XMLInstance2Schema()
Creates a new XMLInstance2Schema

Method Detail

createSchema

public Schema createSchema(java.lang.String filename)
                    throws java.io.IOException
Creates an XML Schema using the given XML instance filename. The XML Schema created will be based on the specific XML instance document.

Parameters:
filename - the filename for the XML document
Throws:
java.io.IOException

createSchema

public Schema createSchema(java.io.Reader reader)
                    throws java.io.IOException
Creates an XML Schema using the given Reader. The reader must be for an XML instance document. The XML Schema created will be based on the specific XML instance document.

Parameters:
reader - the Reader for the XML document
Throws:
java.io.IOException

createSchema

public Schema createSchema(org.xml.sax.InputSource source)
                    throws java.io.IOException
Creates an XML Schema using the given InputSource. The InputSource must be for an XML instance document. The XML Schema created will be based on the specific XML instance document.

Parameters:
source - the InputSource for the XML document
Throws:
java.io.IOException

setDefaultGroupingAsAll

public void setDefaultGroupingAsAll()
Sets the default grouping as "all". By default groups will be treated as "sequence".


main

public static void main(java.lang.String[] args)
For testing purposes only



Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com