org.exolab.castor.xml.schema.util

Class XMLInstance2SchemaHandler

public final class XMLInstance2SchemaHandler extends Object implements DocumentHandler, ErrorHandler

A Utility class which will attempt to create an XML Schema Object Model based on a given XML instance document.

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

Author: Keith Visco

Nested Class Summary
classXMLInstance2SchemaHandler.StateInfo
Inner-class to hold state
Constructor Summary
XMLInstance2SchemaHandler()
Creates a new XMLInstance2SchemaHandler
XMLInstance2SchemaHandler(Schema schema)
Creates a new XMLInstance2SchemaHandler
Method Summary
voidcharacters(char[] ch, int start, int length)
voidendDocument()
voidendElement(String name)
voiderror(SAXParseException exception)
voidfatalError(SAXParseException exception)
SchemagetSchema()
Returns the XML Schema object that is being used by this handler
voidignorableWhitespace(char[] ch, int start, int length)
voidprocessingInstruction(String target, String data)
protected voidsetDefaultGroupOrder(Order order)
This method is used to set the default group type.
voidsetDocumentLocator(Locator locator)
voidstartDocument()
voidstartElement(String name, AttributeList atts)
voidwarning(SAXParseException exception)

Constructor Detail

XMLInstance2SchemaHandler

public XMLInstance2SchemaHandler()
Creates a new XMLInstance2SchemaHandler

XMLInstance2SchemaHandler

public XMLInstance2SchemaHandler(Schema schema)
Creates a new XMLInstance2SchemaHandler

Method Detail

characters

public void characters(char[] ch, int start, int length)

endDocument

public void endDocument()

endElement

public void endElement(String name)

error

public void error(SAXParseException exception)

fatalError

public void fatalError(SAXParseException exception)

getSchema

public Schema getSchema()
Returns the XML Schema object that is being used by this handler

Returns: the XML Schema object that is being used by this handler

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)

processingInstruction

public void processingInstruction(String target, String data)

setDefaultGroupOrder

protected void setDefaultGroupOrder(Order order)
This method is used to set the default group type. Either "sequence" or "all". The default is "sequence".

Parameters: order the default group order to use.

setDocumentLocator

public void setDocumentLocator(Locator locator)

startDocument

public void startDocument()

startElement

public void startElement(String name, AttributeList atts)

warning

public void warning(SAXParseException exception)
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com