<!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:48:43 GMT 2011 --> <TITLE> TypeHierarchy </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="TypeHierarchy"; } } </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="../../../../net/sf/saxon/type/Type.html" title="class in net.sf.saxon.type"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/type/UnresolvedReferenceException.html" title="class in net.sf.saxon.type"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/type/TypeHierarchy.html" target="_top"><B>FRAMES</B></A> <A HREF="TypeHierarchy.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"> net.sf.saxon.type</FONT> <BR> Class TypeHierarchy</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 "><B>net.sf.saxon.type.TypeHierarchy</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>TypeHierarchy</B><DT>extends <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><DT>implements <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DL> </PRE> <P> This class exists to provide answers to questions about the type hierarchy. Because such questions are potentially expensive, it caches the answers. There is one instance of this class for a Configuration. <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#net.sf.saxon.type.TypeHierarchy">Serialized Form</A></DL> <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>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#DISJOINT">DISJOINT</A></B></CODE> <BR> Constant denoting relationship between two types: A is disjoint from B</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="../../../../net/sf/saxon/type/TypeHierarchy.html#OVERLAPS">OVERLAPS</A></B></CODE> <BR> Constant denoting relationship between two types: A overlaps B</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="../../../../net/sf/saxon/type/TypeHierarchy.html#SAME_TYPE">SAME_TYPE</A></B></CODE> <BR> Constant denoting relationship between two types: A is the same type as B</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="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMED_BY">SUBSUMED_BY</A></B></CODE> <BR> Constant denoting relationship between two types: A is subsumed by B</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="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMES">SUBSUMES</A></B></CODE> <BR> Constant denoting relationship between two types: A subsumes B</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="../../../../net/sf/saxon/type/TypeHierarchy.html#TypeHierarchy(net.sf.saxon.Configuration)">TypeHierarchy</A></B>(<A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A> config)</CODE> <BR> Create the type hierarchy cache for a configuration</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> <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#getConfiguration()">getConfiguration</A></B>()</CODE> <BR> Get the Saxon configuration to which this type hierarchy belongs</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="../../../../net/sf/saxon/type/TypeHierarchy.html#isIdCode(int)">isIdCode</A></B>(int typeCode)</CODE> <BR> Test whether a type annotation code represents the type xs:ID or one of its subtypes</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="../../../../net/sf/saxon/type/TypeHierarchy.html#isIdrefsCode(int)">isIdrefsCode</A></B>(int typeCode)</CODE> <BR> Test whether a type annotation code represents the type xs:IDREF, xs:IDREFS or one of their subtypes</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="../../../../net/sf/saxon/type/TypeHierarchy.html#isSubType(net.sf.saxon.type.ItemType, net.sf.saxon.type.ItemType)">isSubType</A></B>(<A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> subtype, <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> supertype)</CODE> <BR> Determine whether type A is type B or one of its subtypes, recursively.</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="../../../../net/sf/saxon/type/TypeHierarchy.html#relationship(net.sf.saxon.type.ItemType, net.sf.saxon.type.ItemType)">relationship</A></B>(<A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> t1, <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> t2)</CODE> <BR> Determine the relationship of one item type to another.</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="../../../../net/sf/saxon/type/TypeHierarchy.html#schemaTypeRelationship(net.sf.saxon.type.SchemaType, net.sf.saxon.type.SchemaType)">schemaTypeRelationship</A></B>(<A HREF="../../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> s1, <A HREF="../../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> s2)</CODE> <BR> Get the relationship of two schema types to each other</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="SAME_TYPE"><!-- --></A><H3> SAME_TYPE</H3> <PRE> public static final int <B>SAME_TYPE</B></PRE> <DL> <DD>Constant denoting relationship between two types: A is the same type as B <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.saxon.type.TypeHierarchy.SAME_TYPE">Constant Field Values</A></DL> </DL> <HR> <A NAME="SUBSUMES"><!-- --></A><H3> SUBSUMES</H3> <PRE> public static final int <B>SUBSUMES</B></PRE> <DL> <DD>Constant denoting relationship between two types: A subsumes B <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.saxon.type.TypeHierarchy.SUBSUMES">Constant Field Values</A></DL> </DL> <HR> <A NAME="SUBSUMED_BY"><!-- --></A><H3> SUBSUMED_BY</H3> <PRE> public static final int <B>SUBSUMED_BY</B></PRE> <DL> <DD>Constant denoting relationship between two types: A is subsumed by B <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.saxon.type.TypeHierarchy.SUBSUMED_BY">Constant Field Values</A></DL> </DL> <HR> <A NAME="OVERLAPS"><!-- --></A><H3> OVERLAPS</H3> <PRE> public static final int <B>OVERLAPS</B></PRE> <DL> <DD>Constant denoting relationship between two types: A overlaps B <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.saxon.type.TypeHierarchy.OVERLAPS">Constant Field Values</A></DL> </DL> <HR> <A NAME="DISJOINT"><!-- --></A><H3> DISJOINT</H3> <PRE> public static final int <B>DISJOINT</B></PRE> <DL> <DD>Constant denoting relationship between two types: A is disjoint from B <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.saxon.type.TypeHierarchy.DISJOINT">Constant Field Values</A></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="TypeHierarchy(net.sf.saxon.Configuration)"><!-- --></A><H3> TypeHierarchy</H3> <PRE> public <B>TypeHierarchy</B>(<A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A> config)</PRE> <DL> <DD>Create the type hierarchy cache for a configuration <P> <DL> <DT><B>Parameters:</B><DD><CODE>config</CODE> - the configuration</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="getConfiguration()"><!-- --></A><H3> getConfiguration</H3> <PRE> public <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A> <B>getConfiguration</B>()</PRE> <DL> <DD>Get the Saxon configuration to which this type hierarchy belongs <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the configuration</DL> </DD> </DL> <HR> <A NAME="isSubType(net.sf.saxon.type.ItemType, net.sf.saxon.type.ItemType)"><!-- --></A><H3> isSubType</H3> <PRE> public boolean <B>isSubType</B>(<A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> subtype, <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> supertype)</PRE> <DL> <DD>Determine whether type A is type B or one of its subtypes, recursively. "Subtype" here means a type that is subsumed, that is, a type whose instances are a subset of the instances of the other type. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>subtype</CODE> - identifies the first type<DD><CODE>supertype</CODE> - identifies the second type <DT><B>Returns:</B><DD>true if the first type is the second type or is subsumed by the second type</DL> </DD> </DL> <HR> <A NAME="relationship(net.sf.saxon.type.ItemType, net.sf.saxon.type.ItemType)"><!-- --></A><H3> relationship</H3> <PRE> public int <B>relationship</B>(<A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> t1, <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> t2)</PRE> <DL> <DD>Determine the relationship of one item type to another. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>t1</CODE> - the first item type<DD><CODE>t2</CODE> - the second item type <DT><B>Returns:</B><DD><A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SAME_TYPE"><CODE>SAME_TYPE</CODE></A> if the types are the same; <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMES"><CODE>SUBSUMES</CODE></A> if the first type subsumes the second (that is, all instances of the second type are also instances of the first); <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMED_BY"><CODE>SUBSUMED_BY</CODE></A> if the second type subsumes the first; <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#OVERLAPS"><CODE>OVERLAPS</CODE></A> if the two types overlap (have a non-empty intersection, but neither subsumes the other); <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#DISJOINT"><CODE>DISJOINT</CODE></A> if the two types are disjoint (have an empty intersection)</DL> </DD> </DL> <HR> <A NAME="isIdCode(int)"><!-- --></A><H3> isIdCode</H3> <PRE> public boolean <B>isIdCode</B>(int typeCode)</PRE> <DL> <DD>Test whether a type annotation code represents the type xs:ID or one of its subtypes <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>typeCode</CODE> - the type annotation to be tested <DT><B>Returns:</B><DD>true if the type annotation represents an xs:ID</DL> </DD> </DL> <HR> <A NAME="isIdrefsCode(int)"><!-- --></A><H3> isIdrefsCode</H3> <PRE> public boolean <B>isIdrefsCode</B>(int typeCode)</PRE> <DL> <DD>Test whether a type annotation code represents the type xs:IDREF, xs:IDREFS or one of their subtypes <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>typeCode</CODE> - the type annotation to be tested <DT><B>Returns:</B><DD>true if the type annotation represents an xs:IDREF or xs:IDREFS or a subtype thereof</DL> </DD> </DL> <HR> <A NAME="schemaTypeRelationship(net.sf.saxon.type.SchemaType, net.sf.saxon.type.SchemaType)"><!-- --></A><H3> schemaTypeRelationship</H3> <PRE> public static int <B>schemaTypeRelationship</B>(<A HREF="../../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> s1, <A HREF="../../../../net/sf/saxon/type/SchemaType.html" title="interface in net.sf.saxon.type">SchemaType</A> s2)</PRE> <DL> <DD>Get the relationship of two schema types to each other <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>s1</CODE> - the first type<DD><CODE>s2</CODE> - the second type <DT><B>Returns:</B><DD>the relationship of the two types, as one of the constants <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SAME_TYPE"><CODE>SAME_TYPE</CODE></A>, <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMES"><CODE>SUBSUMES</CODE></A>, <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#SUBSUMED_BY"><CODE>SUBSUMED_BY</CODE></A>, <A HREF="../../../../net/sf/saxon/type/TypeHierarchy.html#DISJOINT"><CODE>DISJOINT</CODE></A></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="../../../../net/sf/saxon/type/Type.html" title="class in net.sf.saxon.type"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/type/UnresolvedReferenceException.html" title="class in net.sf.saxon.type"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/type/TypeHierarchy.html" target="_top"><B>FRAMES</B></A> <A HREF="TypeHierarchy.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>