Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 2925

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<!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:45 GMT 2011 -->
<TITLE>
SaxonDuration
</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="SaxonDuration";
    }
}
</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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../net/sf/saxon/xqj/ObjectConverter.html" title="interface in net.sf.saxon.xqj"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../net/sf/saxon/xqj/SaxonXMLGregorianCalendar.html" title="class in net.sf.saxon.xqj"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?net/sf/saxon/xqj/SaxonDuration.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SaxonDuration.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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.xqj</FONT>
<BR>
Class SaxonDuration</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="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">javax.xml.datatype.Duration</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.saxon.xqj.SaxonDuration</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>SaxonDuration</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></DL>
</PRE>

<P>
Saxon implementation of the JAXP class javax.xml.datatype.Duration. This is currently used only by the XQJ
 interface for XQuery: the normal representation of a duration in Saxon is the class <A HREF="../../../../net/sf/saxon/value/DurationValue.html" title="class in net.sf.saxon.value"><CODE>DurationValue</CODE></A>.
 <p>
 The JAXP specification for this class defines it in terms of XML Schema 1.0 semantics. This defines a structure
 with six independent components (year, month, day, hour, minute, second). This implementation is more aligned
 to the XPath 2.0 semantics of the data type, which essentially defines duration as an integer number of months plus
 a decimal number of seconds.
<P>

<P>
<HR>

<P>

<!-- ======== 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/xqj/SaxonDuration.html#SaxonDuration(net.sf.saxon.value.DurationValue)">SaxonDuration</A></B>(<A HREF="../../../../net/sf/saxon/value/DurationValue.html" title="class in net.sf.saxon.value">DurationValue</A>&nbsp;duration)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a SaxonDuration that wraps a supplied DurationValue</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#add(javax.xml.datatype.Duration)">add</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes a new duration whose value is <code>this+rhs</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#addTo(java.util.Calendar)">addTo</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A>&nbsp;calendar)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds this duration to a <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><CODE>Calendar</CODE></A> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#compare(javax.xml.datatype.Duration)">compare</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Partial order relation comparison with this <code>Duration</code> instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/sf/saxon/value/DurationValue.html" title="class in net.sf.saxon.value">DurationValue</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#getDurationValue()">getDurationValue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the underlying DurationValue</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#getField(javax.xml.datatype.DatatypeConstants.Field)">getField</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.Field.html?is-external=true" title="class or interface in javax.xml.datatype">DatatypeConstants.Field</A>&nbsp;field)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the value of a field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#getSign()">getSign</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the sign of this duration in -1,0, or 1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#getXMLSchemaType()">getXMLSchemaType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the type of this duration, as one of the values xs:duration, xs:dayTimeDuration, or
 xs:yearMonthDuration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#hashCode()">hashCode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hash code consistent with the definition of the equals method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#isSet(javax.xml.datatype.DatatypeConstants.Field)">isSet</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.Field.html?is-external=true" title="class or interface in javax.xml.datatype">DatatypeConstants.Field</A>&nbsp;field)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if a field is set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#multiply(java.math.BigDecimal)">multiply</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A>&nbsp;factor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes a new duration whose value is <code>factor</code> times
 longer than the value of this duration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#negate()">negate</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <code>Duration</code> object whose
 value is <code>-this</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#normalizeWith(java.util.Calendar)">normalizeWith</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A>&nbsp;startTimeInstant)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the years and months fields into the days field
 by using a specific time instant as the reference point.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#subtract(javax.xml.datatype.Duration)">subtract</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes a new duration whose value is <code>this-rhs</code>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.xml.datatype.Duration"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.xml.datatype.<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#addTo(java.util.Date)" title="class or interface in javax.xml.datatype">addTo</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#equals(java.lang.Object)" title="class or interface in javax.xml.datatype">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getDays()" title="class or interface in javax.xml.datatype">getDays</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getHours()" title="class or interface in javax.xml.datatype">getHours</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getMinutes()" title="class or interface in javax.xml.datatype">getMinutes</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getMonths()" title="class or interface in javax.xml.datatype">getMonths</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getSeconds()" title="class or interface in javax.xml.datatype">getSeconds</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getTimeInMillis(java.util.Calendar)" title="class or interface in javax.xml.datatype">getTimeInMillis</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getTimeInMillis(java.util.Date)" title="class or interface in javax.xml.datatype">getTimeInMillis</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getYears()" title="class or interface in javax.xml.datatype">getYears</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#isLongerThan(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype">isLongerThan</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#isShorterThan(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype">isShorterThan</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#multiply(int)" title="class or interface in javax.xml.datatype">multiply</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#toString()" title="class or interface in javax.xml.datatype">toString</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<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#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#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#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>
&nbsp;
<P>

<!-- ========= 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="SaxonDuration(net.sf.saxon.value.DurationValue)"><!-- --></A><H3>
SaxonDuration</H3>
<PRE>
public <B>SaxonDuration</B>(<A HREF="../../../../net/sf/saxon/value/DurationValue.html" title="class in net.sf.saxon.value">DurationValue</A>&nbsp;duration)</PRE>
<DL>
<DD>Create a SaxonDuration that wraps a supplied DurationValue
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>duration</CODE> - the value to be wrapped.</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="getDurationValue()"><!-- --></A><H3>
getDurationValue</H3>
<PRE>
public <A HREF="../../../../net/sf/saxon/value/DurationValue.html" title="class in net.sf.saxon.value">DurationValue</A> <B>getDurationValue</B>()</PRE>
<DL>
<DD>Get the underlying DurationValue
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the underlying DurationValue</DL>
</DD>
</DL>
<HR>

<A NAME="getXMLSchemaType()"><!-- --></A><H3>
getXMLSchemaType</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/namespace/QName.html?is-external=true" title="class or interface in javax.xml.namespace">QName</A> <B>getXMLSchemaType</B>()</PRE>
<DL>
<DD>Get the type of this duration, as one of the values xs:duration, xs:dayTimeDuration, or
 xs:yearMonthDuration. (Note that the XML Schema namespace URI is used, whereas the current
 implementation of the superclass uses a provisional URI allocated in a 2003 W3C working draft)
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getXMLSchemaType()" title="class or interface in javax.xml.datatype">getXMLSchemaType</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the type of this duration, as one of the values xs:duration, xs:dayTimeDuration, or
 xs:yearMonthDuration</DL>
</DD>
</DL>
<HR>

<A NAME="getSign()"><!-- --></A><H3>
getSign</H3>
<PRE>
public int <B>getSign</B>()</PRE>
<DL>
<DD>Returns the sign of this duration in -1,0, or 1.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getSign()" title="class or interface in javax.xml.datatype">getSign</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>-1 if this duration is negative, 0 if the duration is zero,
         and 1 if the duration is positive.</DL>
</DD>
</DL>
<HR>

<A NAME="getField(javax.xml.datatype.DatatypeConstants.Field)"><!-- --></A><H3>
getField</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A> <B>getField</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.Field.html?is-external=true" title="class or interface in javax.xml.datatype">DatatypeConstants.Field</A>&nbsp;field)</PRE>
<DL>
<DD>Gets the value of a field.
 <p/>
 Fields of a duration object may contain arbitrary large value.
 Therefore this method is designed to return a <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><CODE>Number</CODE></A> object.
 <p/>
 In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned
 number will be a non-negative integer. In case of seconds,
 the returned number may be a non-negative decimal value.
 <p/>
 The Saxon implementation of duration uses normalized values. This means
 that the YEARS and DAYS fields may be arbitrarily large, but other
 components will be limited in size: for example MINUTES will never
 exceed 60 and MONTHS will never exceed 12.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#getField(javax.xml.datatype.DatatypeConstants.Field)" title="class or interface in javax.xml.datatype">getField</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>field</CODE> - one of the six Field constants (YEARS, MONTHS, DAYS, HOURS,
              MINUTES, or SECONDS.)
<DT><B>Returns:</B><DD>If the specified field is present, this method returns
         a non-null non-negative <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><CODE>Number</CODE></A> object that
         represents its value. If it is not present, return null.
         For YEARS, MONTHS, DAYS, HOURS, and MINUTES, this method
         returns a <A HREF="http://download.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><CODE>BigInteger</CODE></A> object. For SECONDS, this
         method returns a <A HREF="http://download.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><CODE>BigDecimal</CODE></A>.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - If the <code>field</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="isSet(javax.xml.datatype.DatatypeConstants.Field)"><!-- --></A><H3>
isSet</H3>
<PRE>
public boolean <B>isSet</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.Field.html?is-external=true" title="class or interface in javax.xml.datatype">DatatypeConstants.Field</A>&nbsp;field)</PRE>
<DL>
<DD>Checks if a field is set. In this implementation, all fields are always set.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#isSet(javax.xml.datatype.DatatypeConstants.Field)" title="class or interface in javax.xml.datatype">isSet</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>field</CODE> - one of the six Field constants (YEARS, MONTHS, DAYS, HOURS,
              MINUTES, or SECONDS.)
<DT><B>Returns:</B><DD>This implementation always returns true.</DL>
</DD>
</DL>
<HR>

<A NAME="add(javax.xml.datatype.Duration)"><!-- --></A><H3>
add</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A> <B>add</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</PRE>
<DL>
<DD><p>Computes a new duration whose value is <code>this+rhs</code>.</p>
 <p>This implementation follows the XPath semantics. This means that the operation will fail
 if the duration is not a yearMonthDuration or a dayTimeDuration.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#add(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype">add</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - <code>Duration</code> to add to this <code>Duration</code>
<DT><B>Returns:</B><DD>non-null valid Duration object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - If the rhs parameter is null.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - If the durations are not both dayTimeDurations, or
 both yearMonthDurations.<DT><B>See Also:</B><DD><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#subtract(javax.xml.datatype.Duration)"><CODE>subtract(javax.xml.datatype.Duration)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="subtract(javax.xml.datatype.Duration)"><!-- --></A><H3>
subtract</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A> <B>subtract</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</PRE>
<DL>
<DD><p>Computes a new duration whose value is <code>this-rhs</code>.</p>
 <p>This implementation follows the XPath semantics. This means that the operation will fail
 if the duration is not a yearMonthDuration or a dayTimeDuration.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#subtract(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype">subtract</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - <code>Duration</code> to subtract from this <code>Duration</code>
<DT><B>Returns:</B><DD>non-null valid Duration object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - If the rhs parameter is null.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - If the durations are not both dayTimeDurations, or
 both yearMonthDurations.<DT><B>See Also:</B><DD><A HREF="../../../../net/sf/saxon/xqj/SaxonDuration.html#add(javax.xml.datatype.Duration)"><CODE>add(javax.xml.datatype.Duration)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addTo(java.util.Calendar)"><!-- --></A><H3>
addTo</H3>
<PRE>
public void <B>addTo</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A>&nbsp;calendar)</PRE>
<DL>
<DD>Adds this duration to a <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><CODE>Calendar</CODE></A> object.
 <p/>
 <p/>
 Calls <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true#add(int, int)" title="class or interface in java.util"><CODE>Calendar.add(int,int)</CODE></A> in the
 order of YEARS, MONTHS, DAYS, HOURS, MINUTES, SECONDS, and MILLISECONDS
 if those fields are present. Because the <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><CODE>Calendar</CODE></A> class
 uses int to hold values, there are cases where this method
 won't work correctly (for example if values of fields
 exceed the range of int.)
 </p>
 <p/>
 <p/>
 Also, since this duration class is a Gregorian duration, this
 method will not work correctly if the given <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><CODE>Calendar</CODE></A>
 object is based on some other calendar systems.
 </p>
 <p/>
 <p/>
 Any fractional parts of this <code>Duration</code> object
 beyond milliseconds will be simply ignored. For example, if
 this duration is "P1.23456S", then 1 is added to SECONDS,
 234 is added to MILLISECONDS, and the rest will be unused.
 </p>
 <p/>
 <p/>
 Note that because <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true#add(int, int)" title="class or interface in java.util"><CODE>Calendar.add(int, int)</CODE></A> is using
 <tt>int</tt>, <code>Duration</code> with values beyond the
 range of <tt>int</tt> in its fields
 will cause overflow/underflow to the given <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><CODE>Calendar</CODE></A>.
 <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/XMLGregorianCalendar.html?is-external=true#add(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype"><CODE>XMLGregorianCalendar.add(javax.xml.datatype.Duration)</CODE></A> provides the same
 basic operation as this method while avoiding
 the overflow/underflow issues.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#addTo(java.util.Calendar)" title="class or interface in javax.xml.datatype">addTo</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>calendar</CODE> - A calendar object whose value will be modified.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if the calendar parameter is null.</DL>
</DD>
</DL>
<HR>

<A NAME="multiply(java.math.BigDecimal)"><!-- --></A><H3>
multiply</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A> <B>multiply</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A>&nbsp;factor)</PRE>
<DL>
<DD>Computes a new duration whose value is <code>factor</code> times
 longer than the value of this duration.
 <p/>
 This implementation follows the XPath semantics. This means that it is defined
 only on yearMonthDuration and dayTimeDuration. Other cases produce an IllegalStateException.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#multiply(java.math.BigDecimal)" title="class or interface in javax.xml.datatype">multiply</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factor</CODE> - to multiply by
<DT><B>Returns:</B><DD>returns a non-null valid <code>Duration</code> object
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if operation produces fraction in
                               the months field.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if the <code>factor</code> parameter is
                               <code>null</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="negate()"><!-- --></A><H3>
negate</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A> <B>negate</B>()</PRE>
<DL>
<DD>Returns a new <code>Duration</code> object whose
 value is <code>-this</code>.
 <p/>
 <p/>
 Since the <code>Duration</code> class is immutable, this method
 doesn't change the value of this object. It simply computes
 a new Duration object and returns it.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#negate()" title="class or interface in javax.xml.datatype">negate</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>always return a non-null valid <code>Duration</code> object.</DL>
</DD>
</DL>
<HR>

<A NAME="normalizeWith(java.util.Calendar)"><!-- --></A><H3>
normalizeWith</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A> <B>normalizeWith</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A>&nbsp;startTimeInstant)</PRE>
<DL>
<DD><p>Converts the years and months fields into the days field
 by using a specific time instant as the reference point.</p>
 <p/>
 This implementation does not support this method
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#normalizeWith(java.util.Calendar)" title="class or interface in javax.xml.datatype">normalizeWith</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startTimeInstant</CODE> - <code>Calendar</code> reference point.
<DT><B>Returns:</B><DD><code>Duration</code> of years and months of this <code>Duration</code> as days.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - If the startTimeInstant parameter is null.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - Always thrown by this implementation.</DL>
</DD>
</DL>
<HR>

<A NAME="compare(javax.xml.datatype.Duration)"><!-- --></A><H3>
compare</H3>
<PRE>
public int <B>compare</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A>&nbsp;rhs)</PRE>
<DL>
<DD><p>Partial order relation comparison with this <code>Duration</code> instance.</p>
 <p>This implementation follows the XPath semantics. This means that the result is defined only
 for dayTimeDuration and yearMonthDuration values, and the result is never indeterminate.
 <p/>
 <p>Return:</p>
 <ul>
 <li><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#LESSER" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.LESSER</CODE></A>
 if this <code>Duration</code> is shorter than <code>duration</code> parameter</li>
 <li><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#EQUAL" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.EQUAL</CODE></A>
 if this <code>Duration</code> is equal to <code>duration</code> parameter</li>
 <li><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#GREATER" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.GREATER</CODE></A>
 if this <code>Duration</code> is longer than <code>duration</code> parameter</li>
 <li><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#INDETERMINATE" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.INDETERMINATE</CODE></A>
 if a conclusive partial order relation cannot be determined</li>
 </ul>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#compare(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype">compare</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - duration to compare
<DT><B>Returns:</B><DD>the relationship between <code>this</code> <code>Duration</code>and <code>duration</code> parameter as
         <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#LESSER" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.LESSER</CODE></A>,
         <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#EQUAL" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.EQUAL</CODE></A>,
          <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#GREATER" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.GREATER</CODE></A>
         or <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/DatatypeConstants.html?is-external=true#INDETERMINATE" title="class or interface in javax.xml.datatype"><CODE>DatatypeConstants.INDETERMINATE</CODE></A>.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - If the underlying implementation
                                       cannot reasonably process the request, e.g. W3C XML Schema allows for
                                       arbitrarily large/small/precise values, the request may be beyond the
                                       implementations capability.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>duration</code> is <code>null</code>.
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the operands are not dayTimeDuration or yearMonthDuration values.<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#isShorterThan(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype"><CODE>Duration.isShorterThan(javax.xml.datatype.Duration)</CODE></A>, 
<A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#isLongerThan(javax.xml.datatype.Duration)" title="class or interface in javax.xml.datatype"><CODE>Duration.isLongerThan(javax.xml.datatype.Duration)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Returns a hash code consistent with the definition of the equals method.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true#hashCode()" title="class or interface in javax.xml.datatype">hashCode</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html?is-external=true" title="class or interface in javax.xml.datatype">Duration</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><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"><CODE>Object.hashCode()</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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../net/sf/saxon/xqj/ObjectConverter.html" title="interface in net.sf.saxon.xqj"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../net/sf/saxon/xqj/SaxonXMLGregorianCalendar.html" title="class in net.sf.saxon.xqj"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?net/sf/saxon/xqj/SaxonDuration.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SaxonDuration.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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>