5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-b27-fcs
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk// Any modifications to this file will be lost upon recompilation of the source schema.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk// Generated on: 2012.06.11 at 10:34:07 AM PDT
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkpackage com.sun.identity.saml2.jaxb.assertion.impl.runtime;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport javax.xml.bind.helpers.ValidationEventImpl;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkimport javax.xml.bind.helpers.ValidationEventLocatorImpl;
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Redirects events to another SAX ContentHandler.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Note that the SAXException returned by the ContentHandler is
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * unreported. So we have to catch them and report it, then rethrow
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * it if necessary.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkpublic class UnmarshallingEventHandlerAdaptor implements UnmarshallingEventHandler {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk /** This handler will receive SAX events. */
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public UnmarshallingEventHandlerAdaptor(UnmarshallingContext _ctxt,ContentHandler _handler) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk // emulate the start of documents
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk handler.setDocumentLocator(context.getLocator());
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk declarePrefixes( context.getAllDeclaredPrefixes() );
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } catch( SAXException e ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk // nest level of elements.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void enterAttribute(String uri, String local, String qname) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk declarePrefixes(context.getNewlyDeclaredPrefixes());
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } catch( SAXException e ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void leaveAttribute(String uri, String local, String qname) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void leaveElement(String uri, String local, String qname) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk undeclarePrefixes(context.getNewlyDeclaredPrefixes());
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } catch( SAXException e ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk // emulate the end of the document
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk undeclarePrefixes(context.getAllDeclaredPrefixes());
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } catch( SAXException e ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private void declarePrefixes( String[] prefixes ) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private void undeclarePrefixes( String[] prefixes ) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void text(String s) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk handler.characters(s.toCharArray(),0,s.length());
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk } catch( SAXException e ) {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private void error( SAXException e ) throws SAXException {
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk new ValidationEventLocatorImpl(context.getLocator()),
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk public void leaveChild(int nextState) throws SAXException {