net.sf.jaxme.xs
Class XSParser

java.lang.Object
  extended bynet.sf.jaxme.xs.XSParser
Direct Known Subclasses:
JAXBParser

public class XSParser
extends java.lang.Object

The XML schema parser.

Version:
$Id: XSParser.java,v 1.2 2003/08/13 20:38:43 joe Exp $
Author:
Jochen Wiedmann

Field Summary
static java.lang.String XML_SCHEMA_URI
          The XML Schema URI: http://www.w3.org/2001/XMLSchema
static java.lang.String XML_URI
          The XML namespace URI: http://www.w3.org/XML/1998/namespace
 
Constructor Summary
XSParser()
          Creates a new instance of XSParser.
 
Method Summary
 XSContext getContext()
          Provides access to the parsers internal data.
static XSParser getRunningInstance()
          Provides access to the currently running instance of XSParser.
 boolean isValidating()
          Returns whether the parser is validating.
 XSSchema parse(org.xml.sax.InputSource pSource)
          Parses the given XML schema and returns a logical representation.
 XsESchema parseSyntax(org.xml.sax.InputSource pSource)
          Parses the given XML schema. and returns a syntactical representation.
protected  void setData(XSContext pData)
           
 void setValidating(boolean pValidating)
          Sets whether the parser is validating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_URI

public static final java.lang.String XML_URI

The XML namespace URI: http://www.w3.org/XML/1998/namespace

See Also:
Constant Field Values

XML_SCHEMA_URI

public static final java.lang.String XML_SCHEMA_URI

The XML Schema URI: http://www.w3.org/2001/XMLSchema

See Also:
Constant Field Values
Constructor Detail

XSParser

public XSParser()

Creates a new instance of XSParser.

Method Detail

setValidating

public void setValidating(boolean pValidating)

Sets whether the parser is validating.


isValidating

public boolean isValidating()

Returns whether the parser is validating.


getContext

public XSContext getContext()

Provides access to the parsers internal data. Use the getRunningInstance() method to find the parser.


setData

protected void setData(XSContext pData)

parseSyntax

public XsESchema parseSyntax(org.xml.sax.InputSource pSource)
                      throws javax.xml.parsers.ParserConfigurationException,
                             org.xml.sax.SAXException,
                             java.io.IOException

Parses the given XML schema. and returns a syntactical representation.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
See Also:
parse(InputSource)

parse

public XSSchema parse(org.xml.sax.InputSource pSource)
               throws javax.xml.parsers.ParserConfigurationException,
                      org.xml.sax.SAXException,
                      java.io.IOException

Parses the given XML schema and returns a logical representation.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

getRunningInstance

public static XSParser getRunningInstance()

Provides access to the currently running instance of XSParser.