<!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.6.0_18) on Fri Dec 09 20:47:56 GMT 2011 --> <TITLE> ContentValidator </TITLE> <META NAME="date" CONTENT="2011-12-09"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ContentValidator"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= 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="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate"><B>PREV CLASS</B></A> <A HREF="../../../com/saxonica/validate/DocumentValidator.html" title="class in com.saxonica.validate"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?com/saxonica/validate/ContentValidator.html" target="_top"><B>FRAMES</B></A> <A HREF="ContentValidator.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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"> com.saxonica.validate</FONT> <BR> Class ContentValidator</H2> <PRE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../net/sf/saxon/event/SequenceReceiver.html" title="class in net.sf.saxon.event">net.sf.saxon.event.SequenceReceiver</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html" title="class in net.sf.saxon.event">net.sf.saxon.event.ProxyReceiver</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../com/saxonica/validate/ValidatingFilter.html" title="class in com.saxonica.validate">com.saxonica.validate.ValidatingFilter</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.saxonica.validate.ContentValidator</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Result.html?is-external=true" title="class or interface in javax.xml.transform">Result</A>, <A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A></DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/saxonica/validate/AttributeValidator.html" title="class in com.saxonica.validate">AttributeValidator</A>, <A HREF="../../../com/saxonica/validate/LaxValidator.html" title="class in com.saxonica.validate">LaxValidator</A>, <A HREF="../../../com/saxonica/validate/SkipValidator.html" title="class in com.saxonica.validate">SkipValidator</A></DD> </DL> <HR> <DL> <DT><PRE>public abstract class <B>ContentValidator</B><DT>extends <A HREF="../../../com/saxonica/validate/ValidatingFilter.html" title="class in com.saxonica.validate">ValidatingFilter</A></DL> </PRE> <P> This class is an abstract superclass for all the validators. The class includes factory methods for constructing a validator. <P> <P> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_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>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#nil">nil</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_ALLOWED">NIL_ALLOWED</A></B></CODE> <BR> Constant indicating that xsi:nil is allowed and active.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_DISALLOWED">NIL_DISALLOWED</A></B></CODE> <BR> Constant indicating that xsi:nil is disallowed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_IGNORED">NIL_IGNORED</A></B></CODE> <BR> Constant indicating that xsi:nil is allowed but ignored; this is true when we are validating against a type, rather than against an element declaration</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#pendingMessages">pendingMessages</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#xsiType">xsiType</A></B></CODE> <BR> </TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_net.sf.saxon.event.ProxyReceiver"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class net.sf.saxon.event.<A HREF="../../../net/sf/saxon/event/ProxyReceiver.html" title="class in net.sf.saxon.event">ProxyReceiver</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#nextReceiver">nextReceiver</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_net.sf.saxon.event.SequenceReceiver"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class net.sf.saxon.event.<A HREF="../../../net/sf/saxon/event/SequenceReceiver.html" title="class in net.sf.saxon.event">SequenceReceiver</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#pipelineConfiguration">pipelineConfiguration</A>, <A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#previousAtomic">previousAtomic</A>, <A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#systemId">systemId</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_javax.xml.transform.Result"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from interface javax.xml.transform.<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Result.html?is-external=true" title="class or interface in javax.xml.transform">Result</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Result.html?is-external=true#PI_DISABLE_OUTPUT_ESCAPING" title="class or interface in javax.xml.transform">PI_DISABLE_OUTPUT_ESCAPING</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Result.html?is-external=true#PI_ENABLE_OUTPUT_ESCAPING" title="class or interface in javax.xml.transform">PI_ENABLE_OUTPUT_ESCAPING</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_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>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#ContentValidator(net.sf.saxon.event.Receiver)">ContentValidator</A></B>(<A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> next)</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== 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> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#endDocument()">endDocument</A></B>()</CODE> <BR> Notify the end of a document node</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getAnnotation()">getAnnotation</A></B>()</CODE> <BR> Get the type annotation code to be used on elements validated by this validator</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getChildValidator()">getChildValidator</A></B>()</CODE> <BR> Get a validator to handle the children of the current element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate">ConstraintChecker</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getConstraintChecker()">getConstraintChecker</A></B>()</CODE> <BR> Get the constraint checker used in this pipeline</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getContainingElement()">getContainingElement</A></B>()</CODE> <BR> Get the fingerprint of the name of the element being validated (for diagnostics).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getContainingElementLocationId()">getContainingElementLocationId</A></B>()</CODE> <BR> Get the location ID of the element being validated</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getContainingElementName()">getContainingElementName</A></B>()</CODE> <BR> Get the containing element name, for use in error messages.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getElementDeclaration()">getElementDeclaration</A></B>()</CODE> <BR> Get the element declaration that this validator is validating against</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../net/sf/saxon/om/NamespaceResolver.html" title="interface in net.sf.saxon.om">NamespaceResolver</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getNamespaceResolver()">getNamespaceResolver</A></B>()</CODE> <BR> Get the namespace resolver</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getNillability()">getNillability</A></B>()</CODE> <BR> Determine whether this type permits xsi:nil = true BlockCom</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getSchemaType()">getSchemaType</A></B>()</CODE> <BR> Get the schema type against which we are validating, if any</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#getStartTagBuffer()">getStartTagBuffer</A></B>()</CODE> <BR> Get the startTagBuffer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#isNil()">isNil</A></B>()</CODE> <BR> Determine whether xsi:nil = true was set on this element</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#makeValidator(com.saxonica.schema.ElementDecl, int, int, com.saxonica.validate.StartTagBufferEE, net.sf.saxon.type.SchemaType, int, net.sf.saxon.event.PipelineConfiguration, net.sf.saxon.event.Receiver)">makeValidator</A></B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> decl, int nameCode, int locationId, <A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A> startTagBuffer, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> governingType, int validation, <A HREF="../../../net/sf/saxon/event/PipelineConfiguration.html" title="class in net.sf.saxon.event">PipelineConfiguration</A> pipe, <A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> nextReceiver)</CODE> <BR> Factory method to make a validator for a particular element</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#makeValidatorForType(com.saxonica.schema.ElementDecl, net.sf.saxon.type.SchemaType, net.sf.saxon.event.PipelineConfiguration, net.sf.saxon.event.Receiver)">makeValidatorForType</A></B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> elementDecl, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> schemaType, <A HREF="../../../net/sf/saxon/event/PipelineConfiguration.html" title="class in net.sf.saxon.event">PipelineConfiguration</A> pipe, <A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> nextReceiver)</CODE> <BR> Factory method to create a validator for elements of a given type</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#setAnnotation(net.sf.saxon.type.SchemaType)">setAnnotation</A></B>(<A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> annotation)</CODE> <BR> Set the type annotation code to be allocated by this validator</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="../../../com/saxonica/validate/ContentValidator.html#setConstraintChecker(com.saxonica.validate.ConstraintChecker)">setConstraintChecker</A></B>(<A HREF="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate">ConstraintChecker</A> checker)</CODE> <BR> Set the constraint checker used in this pipeline</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="../../../com/saxonica/validate/ContentValidator.html#setContainingElement(int, int)">setContainingElement</A></B>(int fingerprint, int locationId)</CODE> <BR> Set the fingerprint identifying the name of the containing element (for diagnostics)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/saxonica/validate/ContentValidator.html#setElementDeclaration(com.saxonica.schema.ElementDecl)">setElementDeclaration</A></B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> decl)</CODE> <BR> Set the element declaration that this validator is validating against</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="../../../com/saxonica/validate/ContentValidator.html#setNillability(int)">setNillability</A></B>(int nillability)</CODE> <BR> Set whether this type permits xsi:nil = true</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="../../../com/saxonica/validate/ContentValidator.html#setStartTagBuffer(com.saxonica.validate.StartTagBufferEE)">setStartTagBuffer</A></B>(<A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A> startTag)</CODE> <BR> Set the StartTagBuffer, which buffers attributes on the element start tag, and also acts as the namespaceResolver to be used for resolving QName-valued attributes</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="../../../com/saxonica/validate/ContentValidator.html#setXSIType(net.sf.saxon.type.SchemaType)">setXSIType</A></B>(<A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> xsiType)</CODE> <BR> Set the value of the xsi:type attribute.</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="../../../com/saxonica/validate/ContentValidator.html#startElement(net.sf.saxon.om.NodeName, net.sf.saxon.type.SchemaType, int, int)">startElement</A></B>(<A HREF="../../../net/sf/saxon/om/NodeName.html" title="interface in net.sf.saxon.om">NodeName</A> nameCode, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> typeCode, int locationId, int properties)</CODE> <BR> Handle the start tag for a child element of the element being validated</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.saxonica.validate.ValidatingFilter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.saxonica.validate.<A HREF="../../../com/saxonica/validate/ValidatingFilter.html" title="class in com.saxonica.validate">ValidatingFilter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../com/saxonica/validate/ValidatingFilter.html#append(net.sf.saxon.om.Item, int, int)">append</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#getErrorCode()">getErrorCode</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#getInvalidity()">getInvalidity</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#isInvalid()">isInvalid</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#reportIfInvalid()">reportIfInvalid</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#reportValidationError(net.sf.saxon.type.ValidationException, boolean, int, int)">reportValidationError</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#setErrorCode(java.lang.String)">setErrorCode</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#setInvalidity(int)">setInvalidity</A>, <A HREF="../../../com/saxonica/validate/ValidatingFilter.html#usesTypeAnnotations()">usesTypeAnnotations</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_net.sf.saxon.event.ProxyReceiver"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class net.sf.saxon.event.<A HREF="../../../net/sf/saxon/event/ProxyReceiver.html" title="class in net.sf.saxon.event">ProxyReceiver</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#attribute(net.sf.saxon.om.NodeName, net.sf.saxon.type.SimpleType, java.lang.CharSequence, int, int)">attribute</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#characters(java.lang.CharSequence, int, int)">characters</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#close()">close</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#comment(java.lang.CharSequence, int, int)">comment</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#endElement()">endElement</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#getNamePool()">getNamePool</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#getUnderlyingReceiver()">getUnderlyingReceiver</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#namespace(net.sf.saxon.om.NamespaceBinding, int)">namespace</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#open()">open</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#processingInstruction(java.lang.String, java.lang.CharSequence, int, int)">processingInstruction</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#setPipelineConfiguration(net.sf.saxon.event.PipelineConfiguration)">setPipelineConfiguration</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#setSystemId(java.lang.String)">setSystemId</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#setUnderlyingReceiver(net.sf.saxon.event.Receiver)">setUnderlyingReceiver</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#setUnparsedEntity(java.lang.String, java.lang.String, java.lang.String)">setUnparsedEntity</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#startContent()">startContent</A>, <A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#startDocument(int)">startDocument</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_net.sf.saxon.event.SequenceReceiver"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class net.sf.saxon.event.<A HREF="../../../net/sf/saxon/event/SequenceReceiver.html" title="class in net.sf.saxon.event">SequenceReceiver</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#append(net.sf.saxon.om.Item)">append</A>, <A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#getPipelineConfiguration()">getPipelineConfiguration</A>, <A HREF="../../../net/sf/saxon/event/SequenceReceiver.html#getSystemId()">getSystemId</A></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.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_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>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="NIL_IGNORED"><!-- --></A><H3> NIL_IGNORED</H3> <PRE> public static final int <B>NIL_IGNORED</B></PRE> <DL> <DD>Constant indicating that xsi:nil is allowed but ignored; this is true when we are validating against a type, rather than against an element declaration <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.saxonica.validate.ContentValidator.NIL_IGNORED">Constant Field Values</A></DL> </DL> <HR> <A NAME="NIL_ALLOWED"><!-- --></A><H3> NIL_ALLOWED</H3> <PRE> public static final int <B>NIL_ALLOWED</B></PRE> <DL> <DD>Constant indicating that xsi:nil is allowed and active. That is, we are validating against an element declaration that specifies nillable=true <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.saxonica.validate.ContentValidator.NIL_ALLOWED">Constant Field Values</A></DL> </DL> <HR> <A NAME="NIL_DISALLOWED"><!-- --></A><H3> NIL_DISALLOWED</H3> <PRE> public static final int <B>NIL_DISALLOWED</B></PRE> <DL> <DD>Constant indicating that xsi:nil is disallowed. That is, we are validating against an element declaration that specifies nillable=false <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.saxonica.validate.ContentValidator.NIL_DISALLOWED">Constant Field Values</A></DL> </DL> <HR> <A NAME="xsiType"><!-- --></A><H3> xsiType</H3> <PRE> protected <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> <B>xsiType</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="nil"><!-- --></A><H3> nil</H3> <PRE> protected boolean <B>nil</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="pendingMessages"><!-- --></A><H3> pendingMessages</H3> <PRE> protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>pendingMessages</B></PRE> <DL> <DL> </DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_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>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="ContentValidator(net.sf.saxon.event.Receiver)"><!-- --></A><H3> ContentValidator</H3> <PRE> public <B>ContentValidator</B>(<A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> next)</PRE> <DL> </DL> <!-- ============ 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="setContainingElement(int, int)"><!-- --></A><H3> setContainingElement</H3> <PRE> public void <B>setContainingElement</B>(int fingerprint, int locationId)</PRE> <DL> <DD>Set the fingerprint identifying the name of the containing element (for diagnostics) <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fingerprint</CODE> - identifies the name of the containing element<DD><CODE>locationId</CODE> - identifies the location of the containing element</DL> </DD> </DL> <HR> <A NAME="setElementDeclaration(com.saxonica.schema.ElementDecl)"><!-- --></A><H3> setElementDeclaration</H3> <PRE> protected void <B>setElementDeclaration</B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> decl)</PRE> <DL> <DD>Set the element declaration that this validator is validating against <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>decl</CODE> - the element declaration</DL> </DD> </DL> <HR> <A NAME="getElementDeclaration()"><!-- --></A><H3> getElementDeclaration</H3> <PRE> protected <A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> <B>getElementDeclaration</B>()</PRE> <DL> <DD>Get the element declaration that this validator is validating against <P> <DD><DL> <DT><B>Returns:</B><DD>the element declaration</DL> </DD> </DL> <HR> <A NAME="setConstraintChecker(com.saxonica.validate.ConstraintChecker)"><!-- --></A><H3> setConstraintChecker</H3> <PRE> public void <B>setConstraintChecker</B>(<A HREF="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate">ConstraintChecker</A> checker)</PRE> <DL> <DD>Set the constraint checker used in this pipeline <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>checker</CODE> - the constraint checker</DL> </DD> </DL> <HR> <A NAME="getConstraintChecker()"><!-- --></A><H3> getConstraintChecker</H3> <PRE> protected <A HREF="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate">ConstraintChecker</A> <B>getConstraintChecker</B>()</PRE> <DL> <DD>Get the constraint checker used in this pipeline <P> <DD><DL> <DT><B>Returns:</B><DD>the constraint checker</DL> </DD> </DL> <HR> <A NAME="getContainingElement()"><!-- --></A><H3> getContainingElement</H3> <PRE> public int <B>getContainingElement</B>()</PRE> <DL> <DD>Get the fingerprint of the name of the element being validated (for diagnostics). <P> <DD><DL> <DT><B>Returns:</B><DD>the fingerprint, or -1 if not available.</DL> </DD> </DL> <HR> <A NAME="getContainingElementLocationId()"><!-- --></A><H3> getContainingElementLocationId</H3> <PRE> public int <B>getContainingElementLocationId</B>()</PRE> <DL> <DD>Get the location ID of the element being validated <P> <DD><DL> <DT><B>Returns:</B><DD>the location ID, or 0 if not available</DL> </DD> </DL> <HR> <A NAME="getContainingElementName()"><!-- --></A><H3> getContainingElementName</H3> <PRE> protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getContainingElementName</B>()</PRE> <DL> <DD>Get the containing element name, for use in error messages. <P> <DD><DL> <DT><B>Returns:</B><DD>the name of the containing element (plus surrounding punctuation), or the string "element" if not available</DL> </DD> </DL> <HR> <A NAME="getSchemaType()"><!-- --></A><H3> getSchemaType</H3> <PRE> public abstract <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> <B>getSchemaType</B>()</PRE> <DL> <DD>Get the schema type against which we are validating, if any <P> <DD><DL> <DT><B>Returns:</B><DD>the schema type that this validator is validating against, or null</DL> </DD> </DL> <HR> <A NAME="setAnnotation(net.sf.saxon.type.SchemaType)"><!-- --></A><H3> setAnnotation</H3> <PRE> protected final void <B>setAnnotation</B>(<A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> annotation)</PRE> <DL> <DD>Set the type annotation code to be allocated by this validator <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>annotation</CODE> - the integer fingerprint of the name of the type</DL> </DD> </DL> <HR> <A NAME="getAnnotation()"><!-- --></A><H3> getAnnotation</H3> <PRE> protected final <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> <B>getAnnotation</B>()</PRE> <DL> <DD>Get the type annotation code to be used on elements validated by this validator <P> <DD><DL> <DT><B>Returns:</B><DD>the integer fingerprint of the name of the type</DL> </DD> </DL> <HR> <A NAME="setXSIType(net.sf.saxon.type.SchemaType)"><!-- --></A><H3> setXSIType</H3> <PRE> public void <B>setXSIType</B>(<A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> xsiType)</PRE> <DL> <DD>Set the value of the xsi:type attribute. This is called immediately before the call of startElement on which the xsi:type attribute appears. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>xsiType</CODE> - the schema type identified by the xsi:type attribute</DL> </DD> </DL> <HR> <A NAME="setStartTagBuffer(com.saxonica.validate.StartTagBufferEE)"><!-- --></A><H3> setStartTagBuffer</H3> <PRE> public void <B>setStartTagBuffer</B>(<A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A> startTag)</PRE> <DL> <DD>Set the StartTagBuffer, which buffers attributes on the element start tag, and also acts as the namespaceResolver to be used for resolving QName-valued attributes <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>startTag</CODE> - the namespace resolver</DL> </DD> </DL> <HR> <A NAME="getStartTagBuffer()"><!-- --></A><H3> getStartTagBuffer</H3> <PRE> public <A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A> <B>getStartTagBuffer</B>()</PRE> <DL> <DD>Get the startTagBuffer <P> <DD><DL> <DT><B>Returns:</B><DD>the startTagBuffer</DL> </DD> </DL> <HR> <A NAME="getNamespaceResolver()"><!-- --></A><H3> getNamespaceResolver</H3> <PRE> public <A HREF="../../../net/sf/saxon/om/NamespaceResolver.html" title="interface in net.sf.saxon.om">NamespaceResolver</A> <B>getNamespaceResolver</B>()</PRE> <DL> <DD>Get the namespace resolver <P> <DD><DL> <DT><B>Returns:</B><DD>the namespace resolver</DL> </DD> </DL> <HR> <A NAME="setNillability(int)"><!-- --></A><H3> setNillability</H3> <PRE> public void <B>setNillability</B>(int nillability)</PRE> <DL> <DD>Set whether this type permits xsi:nil = true <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nillability</CODE> - one of <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_IGNORED"><CODE>NIL_IGNORED</CODE></A>, <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_ALLOWED"><CODE>NIL_ALLOWED</CODE></A>, <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_DISALLOWED"><CODE>NIL_DISALLOWED</CODE></A></DL> </DD> </DL> <HR> <A NAME="getNillability()"><!-- --></A><H3> getNillability</H3> <PRE> public int <B>getNillability</B>()</PRE> <DL> <DD>Determine whether this type permits xsi:nil = true BlockCom <P> <DD><DL> <DT><B>Returns:</B><DD>one of <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_IGNORED"><CODE>NIL_IGNORED</CODE></A>, <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_ALLOWED"><CODE>NIL_ALLOWED</CODE></A>, <A HREF="../../../com/saxonica/validate/ContentValidator.html#NIL_DISALLOWED"><CODE>NIL_DISALLOWED</CODE></A></DL> </DD> </DL> <HR> <A NAME="isNil()"><!-- --></A><H3> isNil</H3> <PRE> public boolean <B>isNil</B>()</PRE> <DL> <DD>Determine whether xsi:nil = true was set on this element <P> <DD><DL> <DT><B>Returns:</B><DD>true if xsi:nil="true" was set</DL> </DD> </DL> <HR> <A NAME="startElement(net.sf.saxon.om.NodeName, net.sf.saxon.type.SchemaType, int, int)"><!-- --></A><H3> startElement</H3> <PRE> public void <B>startElement</B>(<A HREF="../../../net/sf/saxon/om/NodeName.html" title="interface in net.sf.saxon.om">NodeName</A> nameCode, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> typeCode, int locationId, int properties) throws <A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Handle the start tag for a child element of the element being validated <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/sf/saxon/event/Receiver.html#startElement(net.sf.saxon.om.NodeName, net.sf.saxon.type.SchemaType, int, int)">startElement</A></CODE> in interface <CODE><A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#startElement(net.sf.saxon.om.NodeName, net.sf.saxon.type.SchemaType, int, int)">startElement</A></CODE> in class <CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html" title="class in net.sf.saxon.event">ProxyReceiver</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nameCode</CODE> - integer code identifying the name of the element within the name pool.<DD><CODE>typeCode</CODE> - integer code identifying the element's type within the name pool.<DD><CODE>locationId</CODE> - an integer which can be interpreted using a <A HREF="../../../net/sf/saxon/event/LocationProvider.html" title="interface in net.sf.saxon.event"><CODE>LocationProvider</CODE></A> to return information such as line number and system ID. If no location information is available, the value zero is supplied.<DD><CODE>properties</CODE> - properties of the element node <DT><B>Throws:</B> <DD><CODE><A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if an error occurs</DL> </DD> </DL> <HR> <A NAME="makeValidator(com.saxonica.schema.ElementDecl, int, int, com.saxonica.validate.StartTagBufferEE, net.sf.saxon.type.SchemaType, int, net.sf.saxon.event.PipelineConfiguration, net.sf.saxon.event.Receiver)"><!-- --></A><H3> makeValidator</H3> <PRE> public static <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A> <B>makeValidator</B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> decl, int nameCode, int locationId, <A HREF="../../../com/saxonica/validate/StartTagBufferEE.html" title="class in com.saxonica.validate">StartTagBufferEE</A> startTagBuffer, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> governingType, int validation, <A HREF="../../../net/sf/saxon/event/PipelineConfiguration.html" title="class in net.sf.saxon.event">PipelineConfiguration</A> pipe, <A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> nextReceiver) throws <A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Factory method to make a validator for a particular element <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>decl</CODE> - the element declaration to validate against. May be null.<DD><CODE>nameCode</CODE> - the name of the element (used only for diagnostics)<DD><CODE>locationId</CODE> - the location of the element, or of the stylesheet instruction that generated this element (or zero)<DD><CODE>startTagBuffer</CODE> - the start tag buffer holding the attributes of the element to be validated, as required for conditional type assigmment. May be null (not available on all paths)<DD><CODE>governingType</CODE> - the type identified by xsi:type, if specified; otherwise null<DD><CODE>validation</CODE> - the validation mode (strict, lax, preserve, strip)<DD><CODE>pipe</CODE> - the pipeline configuration<DD><CODE>nextReceiver</CODE> - the next receiver in the pipeline <DT><B>Returns:</B><DD>a Validator suitable for validating the content of this element <DT><B>Throws:</B> <DD><CODE><A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if a validator cannot be created, for example because neither an element declaration nor a governing type is supplied</DL> </DD> </DL> <HR> <A NAME="getChildValidator()"><!-- --></A><H3> getChildValidator</H3> <PRE> protected abstract <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A> <B>getChildValidator</B>()</PRE> <DL> <DD>Get a validator to handle the children of the current element. This is called immediately on return from the startElement call that starts this element. <P> <DD><DL> <DT><B>Returns:</B><DD>the validator to be used to handle the children</DL> </DD> </DL> <HR> <A NAME="makeValidatorForType(com.saxonica.schema.ElementDecl, net.sf.saxon.type.SchemaType, net.sf.saxon.event.PipelineConfiguration, net.sf.saxon.event.Receiver)"><!-- --></A><H3> makeValidatorForType</H3> <PRE> public static <A HREF="../../../com/saxonica/validate/ContentValidator.html" title="class in com.saxonica.validate">ContentValidator</A> <B>makeValidatorForType</B>(<A HREF="../../../com/saxonica/schema/ElementDecl.html" title="class in com.saxonica.schema">ElementDecl</A> elementDecl, <A HREF="../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> schemaType, <A HREF="../../../net/sf/saxon/event/PipelineConfiguration.html" title="class in net.sf.saxon.event">PipelineConfiguration</A> pipe, <A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A> nextReceiver) throws <A HREF="../../../net/sf/saxon/type/ValidationException.html" title="class in net.sf.saxon.type">ValidationException</A></PRE> <DL> <DD>Factory method to create a validator for elements of a given type <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>elementDecl</CODE> - the element declaration if available, otherwise null (there will be no element declaration, for example, when doing lax validation against an xsi:type)<DD><CODE>schemaType</CODE> - the simple or complex type against which the content of the element is to be validated<DD><CODE>pipe</CODE> - the pipeline configuration<DD><CODE>nextReceiver</CODE> - the next receiver in the pipeline <DT><B>Returns:</B><DD>a Validator that can sit in the event pipeline to perform local validation of elements declared to have this type <DT><B>Throws:</B> <DD><CODE><A HREF="../../../net/sf/saxon/type/ValidationException.html" title="class in net.sf.saxon.type">ValidationException</A></CODE> - if a validator cannot be constructed, for example because the requested type is xs:untypedAtomic</DL> </DD> </DL> <HR> <A NAME="endDocument()"><!-- --></A><H3> endDocument</H3> <PRE> public void <B>endDocument</B>() throws <A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Notify the end of a document node <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/sf/saxon/event/Receiver.html#endDocument()">endDocument</A></CODE> in interface <CODE><A HREF="../../../net/sf/saxon/event/Receiver.html" title="interface in net.sf.saxon.event">Receiver</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html#endDocument()">endDocument</A></CODE> in class <CODE><A HREF="../../../net/sf/saxon/event/ProxyReceiver.html" title="class in net.sf.saxon.event">ProxyReceiver</A></CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if an error occurs</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="../../../com/saxonica/validate/ConstraintChecker.html" title="class in com.saxonica.validate"><B>PREV CLASS</B></A> <A HREF="../../../com/saxonica/validate/DocumentValidator.html" title="class in com.saxonica.validate"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?com/saxonica/validate/ContentValidator.html" target="_top"><B>FRAMES</B></A> <A HREF="ContentValidator.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright (c) 2004-2011 Saxonica Limited. All rights reserved. </BODY> </HTML>