Show ValidatingUnmarshaller.html syntax highlighted
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0-beta2) on Tue Apr 17 12:40:26 EDT 2007 -->
<TITLE>
ValidatingUnmarshaller
</TITLE>
<META NAME="keywords" CONTENT="org.rickmurphy.exchangepackage.disclosure.impl.runtime.ValidatingUnmarshaller class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ValidatingUnmarshaller";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatableObject.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatorImpl.html" title="class in org.rickmurphy.exchangepackage.disclosure.impl.runtime"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html" target="_top"><B>FRAMES</B></A>
<A HREF="ValidatingUnmarshaller.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.rickmurphy.exchangepackage.disclosure.impl.runtime</FONT>
<BR>
Class ValidatingUnmarshaller</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by ">org.iso_relax.verifier.impl.ForkContentHandler
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.rickmurphy.exchangepackage.disclosure.impl.runtime.ValidatingUnmarshaller</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>javax.xml.bind.UnmarshallerHandler, <A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime">SAXUnmarshallerHandler</A>, org.xml.sax.ContentHandler</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>ValidatingUnmarshaller</B><DT>extends org.iso_relax.verifier.impl.ForkContentHandler<DT>implements <A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime">SAXUnmarshallerHandler</A></DL>
</PRE>
<P>
Filter implementation of SAXUnmarshallerHandler.
<p>
This component internally uses a VerifierFilter to validate
SAX events that goes through this component.
Discovered error information is just passed down to the next component.
<p>
This will enable the implementation to validate all sources of SAX events
in the RI - XMLReader, DOMScanner
SAX events will go the VerifierFilter and then to the SAXUnmarshaller...
<P>
<P>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html" title="class in org.rickmurphy.exchangepackage.disclosure.impl.runtime">ValidatingUnmarshaller</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html#create(com.sun.msv.grammar.Grammar, org.rickmurphy.exchangepackage.disclosure.impl.runtime.SAXUnmarshallerHandler, com.sun.xml.bind.validator.Locator)">create</A></B>(com.sun.msv.grammar.Grammar grammar,
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime">SAXUnmarshallerHandler</A> _core,
com.sun.xml.bind.validator.Locator locator)</CODE>
<BR>
Creates a new instance of ValidatingUnmarshaller.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html#getResult()">getResult</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html#handleEvent(javax.xml.bind.ValidationEvent, boolean)">handleEvent</A></B>(javax.xml.bind.ValidationEvent event,
boolean canRecover)</CODE>
<BR>
Reports an error to the user, and asks if s/he wants
to recover.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">startElement</A></B>(java.lang.String nsUri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.iso_relax.verifier.impl.ForkContentHandler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.iso_relax.verifier.impl.ForkContentHandler</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>characters, create, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.xml.sax.ContentHandler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface org.xml.sax.ContentHandler</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="create(com.sun.msv.grammar.Grammar, org.rickmurphy.exchangepackage.disclosure.impl.runtime.SAXUnmarshallerHandler, com.sun.xml.bind.validator.Locator)"><!-- --></A><H3>
create</H3>
<PRE>
public static <A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html" title="class in org.rickmurphy.exchangepackage.disclosure.impl.runtime">ValidatingUnmarshaller</A> <B>create</B>(com.sun.msv.grammar.Grammar grammar,
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime">SAXUnmarshallerHandler</A> _core,
com.sun.xml.bind.validator.Locator locator)</PRE>
<DL>
<DD>Creates a new instance of ValidatingUnmarshaller.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getResult()"><!-- --></A><H3>
getResult</H3>
<PRE>
public java.lang.Object <B>getResult</B>()
throws javax.xml.bind.JAXBException,
java.lang.IllegalStateException</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getResult</CODE> in interface <CODE>javax.xml.bind.UnmarshallerHandler</CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>javax.xml.bind.JAXBException</CODE>
<DD><CODE>java.lang.IllegalStateException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="handleEvent(javax.xml.bind.ValidationEvent, boolean)"><!-- --></A><H3>
handleEvent</H3>
<PRE>
public void <B>handleEvent</B>(javax.xml.bind.ValidationEvent event,
boolean canRecover)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html#handleEvent(javax.xml.bind.ValidationEvent, boolean)">SAXUnmarshallerHandler</A></CODE></B></DD>
<DD>Reports an error to the user, and asks if s/he wants
to recover. If the canRecover flag is false, regardless
of the client instruction, an exception will be thrown.
Only if the flag is true and the user wants to recover from an error,
the method returns normally.
The thrown exception will be catched by the unmarshaller.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html#handleEvent(javax.xml.bind.ValidationEvent, boolean)">handleEvent</A></CODE> in interface <CODE><A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/SAXUnmarshallerHandler.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime">SAXUnmarshallerHandler</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)"><!-- --></A><H3>
startElement</H3>
<PRE>
public void <B>startElement</B>(java.lang.String nsUri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>startElement</CODE> in interface <CODE>org.xml.sax.ContentHandler</CODE><DT><B>Overrides:</B><DD><CODE>startElement</CODE> in class <CODE>org.iso_relax.verifier.impl.ForkContentHandler</CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatableObject.html" title="interface in org.rickmurphy.exchangepackage.disclosure.impl.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../../../../org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatorImpl.html" title="class in org.rickmurphy.exchangepackage.disclosure.impl.runtime"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/rickmurphy/exchangepackage/disclosure/impl/runtime/ValidatingUnmarshaller.html" target="_top"><B>FRAMES</B></A>
<A HREF="ValidatingUnmarshaller.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
See more files for this project here