org.jvnet.wom.impl.parser
Class ParserContext

java.lang.Object
  extended by org.jvnet.wom.impl.parser.ParserContext

public class ParserContext
extends java.lang.Object

Provides context information to be used by WSDLContentHandlerExs.

This class does the actual processing for WOMParser, but to hide the details from the public API, this class in a different package.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Vivek Pandey

Field Summary
 java.util.Map<WSDLDocumentImpl,WSDLDocumentImpl> parsedDocuments
          Documents that are parsed already.
 WSDLSetImpl wsdlSet
          WSDLSet to which a newly parsed schema is put in.
 
Constructor Summary
ParserContext(WOMParser owner, com.sun.xml.xsom.parser.XMLParser parser)
           
 
Method Summary
 void addWSDLExtensionHandler(WSDLExtensionHandler extension)
           
 WSDLContentHandlerEx createWSDLContentHandler()
           
 org.xml.sax.EntityResolver getEntityResolver()
           
 WSDLSet getResult()
          Returns WSDLSet, null if there was any error.
 org.xml.sax.ContentHandler getSchemaContentHandler()
           
 java.util.Set<WSDLExtensionHandler> getWSDLExtensionHandlers()
           
 void parse(org.xml.sax.InputSource source)
          Parses a new XML Schema document.
 void setSchemaContentHandler(org.xml.sax.ContentHandler schemaContentHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wsdlSet

public final WSDLSetImpl wsdlSet
WSDLSet to which a newly parsed schema is put in.


parsedDocuments

public final java.util.Map<WSDLDocumentImpl,WSDLDocumentImpl> parsedDocuments
Documents that are parsed already. Used to avoid cyclic inclusion/double inclusion of schemas. Set of WSDLDocumentImpls.

The actual data structure is map from WSDLDocumentImpl to itself, so that we can access the WSDLDocumentImpl itself.

Constructor Detail

ParserContext

public ParserContext(WOMParser owner,
                     com.sun.xml.xsom.parser.XMLParser parser)
Method Detail

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()

parse

public void parse(org.xml.sax.InputSource source)
           throws org.xml.sax.SAXException
Parses a new XML Schema document.

Throws:
org.xml.sax.SAXException

getResult

public WSDLSet getResult()
                  throws org.xml.sax.SAXException
Returns WSDLSet, null if there was any error.

Throws:
org.xml.sax.SAXException

createWSDLContentHandler

public WSDLContentHandlerEx createWSDLContentHandler()

getSchemaContentHandler

public org.xml.sax.ContentHandler getSchemaContentHandler()

setSchemaContentHandler

public void setSchemaContentHandler(org.xml.sax.ContentHandler schemaContentHandler)

addWSDLExtensionHandler

public void addWSDLExtensionHandler(WSDLExtensionHandler extension)

getWSDLExtensionHandlers

public java.util.Set<WSDLExtensionHandler> getWSDLExtensionHandlers()


Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.