org.jvnet.wom.impl.extension
Class XMLSchemaParserImpl
java.lang.Object
org.jvnet.wom.impl.extension.XMLSchemaParserImpl
- All Implemented Interfaces:
- WSDLExtensionHandler, XMLSchemaParser
public class XMLSchemaParserImpl
- extends java.lang.Object
- implements XMLSchemaParser
- Author:
- Vivek Pandey
|
Constructor Summary |
XMLSchemaParserImpl(org.xml.sax.ErrorHandler errorHandler,
org.xml.sax.EntityResolver entityResolver,
org.xml.sax.ContentHandler ch)
|
|
Method Summary |
void |
freeze()
|
org.xml.sax.ContentHandler |
getContentHandlerFor(java.lang.String nsUri,
java.lang.String localName)
Gives a ContentHandler if this extension handler can process the extensibility elements
idetified by the nsUri and localName |
java.util.Collection<WSDLExtension> |
getExtensions()
This method should be called only after the parsing of extensibility element is complete. |
Schema |
getSchema()
|
java.util.Collection<WSDLExtension> |
parseAttribute(org.xml.sax.Attributes atts)
With this the extension handlers get a chance to process the extensibility attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLSchemaParserImpl
public XMLSchemaParserImpl(org.xml.sax.ErrorHandler errorHandler,
org.xml.sax.EntityResolver entityResolver,
org.xml.sax.ContentHandler ch)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getSchema
public Schema getSchema()
- Specified by:
getSchema in interface XMLSchemaParser
freeze
public void freeze()
throws org.xml.sax.SAXException
- Specified by:
freeze in interface XMLSchemaParser
- Throws:
org.xml.sax.SAXException
getExtensions
public java.util.Collection<WSDLExtension> getExtensions()
- Description copied from interface:
WSDLExtensionHandler
- This method should be called only after the parsing of extensibility element is complete.
Caller will know this when the extension's ContentHandler returns.
- Specified by:
getExtensions in interface WSDLExtensionHandler
- Returns:
- Immutable collection of
WSDLExtension
parseAttribute
public java.util.Collection<WSDLExtension> parseAttribute(org.xml.sax.Attributes atts)
- Description copied from interface:
WSDLExtensionHandler
- With this the extension handlers get a chance to process the extensibility attributes.
- Specified by:
parseAttribute in interface WSDLExtensionHandler
- Returns:
- Immutable collection of
WSDLExtensions
getContentHandlerFor
public org.xml.sax.ContentHandler getContentHandlerFor(java.lang.String nsUri,
java.lang.String localName)
- Description copied from interface:
WSDLExtensionHandler
- Gives a
ContentHandler if this extension handler can process the extensibility elements
idetified by the nsUri and localName
- Specified by:
getContentHandlerFor in interface WSDLExtensionHandler
- Parameters:
nsUri - namespace of the extensiblity element, always non-nulllocalName - localName of the extensibility element, always non-null
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.