<!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:20 GMT 2011 --> <TITLE> Numberer </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="Numberer"; } } </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/lib/NamespaceConstant.html" title="class in net.sf.saxon.lib"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/lib/OutputURIResolver.html" title="interface in net.sf.saxon.lib"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/lib/Numberer.html" target="_top"><B>FRAMES</B></A> <A HREF="Numberer.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.saxon.lib</FONT> <BR> Interface Numberer</H2> <DL> <DT><B>All Superinterfaces:</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> <DL> <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../net/sf/saxon/expr/number/AbstractNumberer.html" title="class in net.sf.saxon.expr.number">AbstractNumberer</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_da.html" title="class in net.sf.saxon.option.local">Numberer_da</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_de.html" title="class in net.sf.saxon.option.local">Numberer_de</A>, <A HREF="../../../../net/sf/saxon/expr/number/Numberer_en.html" title="class in net.sf.saxon.expr.number">Numberer_en</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_fr.html" title="class in net.sf.saxon.option.local">Numberer_fr</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_frBE.html" title="class in net.sf.saxon.option.local">Numberer_frBE</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_he.html" title="class in net.sf.saxon.option.local">Numberer_he</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_it.html" title="class in net.sf.saxon.option.local">Numberer_it</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_nl.html" title="class in net.sf.saxon.option.local">Numberer_nl</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_nlBE.html" title="class in net.sf.saxon.option.local">Numberer_nlBE</A>, <A HREF="../../../../net/sf/saxon/option/local/Numberer_sv.html" title="class in net.sf.saxon.option.local">Numberer_sv</A></DD> </DL> <HR> <DL> <DT><PRE>public interface <B>Numberer</B><DT>extends <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> Interface Numberer supports number formatting. There is a separate implementation for each language, e.g. Numberer_en for English. This supports the xsl:number element <P> <P> <DL> <DT><B>Author:</B></DT> <DD>Michael H. Kay</DD> </DL> <HR> <P> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#dayName(int, int, int)">dayName</A></B>(int day, int minWidth, int maxWidth)</CODE> <BR> Get a day name or abbreviation</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#format(long, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">format</A></B>(long number, <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> picture, int groupSize, <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> groupSeparator, <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> letterValue, <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> ordinal)</CODE> <BR> Format a number into a string</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#format(long, java.lang.String, net.sf.saxon.expr.number.NumericGroupFormatter, java.lang.String, java.lang.String)">format</A></B>(long number, <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> picture, <A HREF="../../../../net/sf/saxon/expr/number/NumericGroupFormatter.html" title="class in net.sf.saxon.expr.number">NumericGroupFormatter</A> numGrpFormatter, <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> letterValue, <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> ordinal)</CODE> <BR> Format a number into a string</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#getCalendarName(java.lang.String)">getCalendarName</A></B>(<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)</CODE> <BR> Get the name of a calendar</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#getCountry()">getCountry</A></B>()</CODE> <BR> Get the country used by this numberer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#getEraName(int)">getEraName</A></B>(int year)</CODE> <BR> Get the name for an era (e.g.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#getOrdinalSuffixForDateTime(java.lang.String)">getOrdinalSuffixForDateTime</A></B>(<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> component)</CODE> <BR> Get an ordinal suffix for a particular component of a date/time.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#halfDayName(int, int, int)">halfDayName</A></B>(int minutes, int minWidth, int maxWidth)</CODE> <BR> Get an am/pm indicator</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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="../../../../net/sf/saxon/lib/Numberer.html#monthName(int, int, int)">monthName</A></B>(int month, int minWidth, int maxWidth)</CODE> <BR> Get a month name or abbreviation</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="../../../../net/sf/saxon/lib/Numberer.html#setCountry(java.lang.String)">setCountry</A></B>(<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> country)</CODE> <BR> Set the country used by this numberer (currently used only for names of timezones).</TD> </TR> </TABLE> <P> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="setCountry(java.lang.String)"><!-- --></A><H3> setCountry</H3> <PRE> void <B>setCountry</B>(<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> country)</PRE> <DL> <DD>Set the country used by this numberer (currently used only for names of timezones). <p>Note: this method is called by the system when allocating a numberer for a specific language and country. Since numberers are normally shared across threads, it should not be changed after the initial creation of the Numberer.</p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>country</CODE> - The ISO two-letter country code.</DL> </DD> </DL> <HR> <A NAME="getCountry()"><!-- --></A><H3> getCountry</H3> <PRE> <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>getCountry</B>()</PRE> <DL> <DD>Get the country used by this numberer <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>The ISO code of the country</DL> </DD> </DL> <HR> <A NAME="format(long, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> format</H3> <PRE> <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>format</B>(long number, <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> picture, int groupSize, <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> groupSeparator, <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> letterValue, <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> ordinal)</PRE> <DL> <DD>Format a number into a string <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - The number to be formatted<DD><CODE>picture</CODE> - The format token. This is a single component of the format attribute of xsl:number, e.g. "1", "01", "i", or "a"<DD><CODE>groupSize</CODE> - number of digits per group (0 implies no grouping)<DD><CODE>groupSeparator</CODE> - string to appear between groups of digits<DD><CODE>letterValue</CODE> - The letter-value specified to xsl:number: "alphabetic" or "traditional". Can also be an empty string or null.<DD><CODE>ordinal</CODE> - The value of the ordinal attribute specified to xsl:number The value "yes" indicates that ordinal numbers should be used; "" or null indicates that cardinal numbers <DT><B>Returns:</B><DD>the formatted number. Note that no errors are reported; if the request is invalid, the number is formatted as if the string() function were used.</DL> </DD> </DL> <HR> <A NAME="format(long, java.lang.String, net.sf.saxon.expr.number.NumericGroupFormatter, java.lang.String, java.lang.String)"><!-- --></A><H3> format</H3> <PRE> <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>format</B>(long number, <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> picture, <A HREF="../../../../net/sf/saxon/expr/number/NumericGroupFormatter.html" title="class in net.sf.saxon.expr.number">NumericGroupFormatter</A> numGrpFormatter, <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> letterValue, <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> ordinal)</PRE> <DL> <DD>Format a number into a string <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - The number to be formatted<DD><CODE>picture</CODE> - The format token. This is a single component of the format attribute of xsl:number, e.g. "1", "01", "i", or "a"<DD><CODE>numGrpFormatter</CODE> - an object that handles insertion of grouping separators into the formatted number<DD><CODE>letterValue</CODE> - The letter-value specified to xsl:number: "alphabetic" or "traditional". Can also be an empty string or null.<DD><CODE>ordinal</CODE> - The value of the ordinal attribute specified to xsl:number The value "yes" indicates that ordinal numbers should be used; "" or null indicates that cardinal numbers <DT><B>Returns:</B><DD>the formatted number. Note that no errors are reported; if the request is invalid, the number is formatted as if the string() function were used.</DL> </DD> </DL> <HR> <A NAME="monthName(int, int, int)"><!-- --></A><H3> monthName</H3> <PRE> <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>monthName</B>(int month, int minWidth, int maxWidth)</PRE> <DL> <DD>Get a month name or abbreviation <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>month</CODE> - The month number (1=January, 12=December)<DD><CODE>minWidth</CODE> - The minimum number of characters<DD><CODE>maxWidth</CODE> - The maximum number of characters <DT><B>Returns:</B><DD>the month name or abbreviation as a string (for example, "September" or "Sep")</DL> </DD> </DL> <HR> <A NAME="dayName(int, int, int)"><!-- --></A><H3> dayName</H3> <PRE> <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>dayName</B>(int day, int minWidth, int maxWidth)</PRE> <DL> <DD>Get a day name or abbreviation <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>day</CODE> - The month number (1=Monday, 7=Sunday)<DD><CODE>minWidth</CODE> - The minimum number of characters<DD><CODE>maxWidth</CODE> - The maximum number of characters <DT><B>Returns:</B><DD>the day name or abbreviation as a string (for example, "Monday" or "Mon")</DL> </DD> </DL> <HR> <A NAME="halfDayName(int, int, int)"><!-- --></A><H3> halfDayName</H3> <PRE> <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>halfDayName</B>(int minutes, int minWidth, int maxWidth)</PRE> <DL> <DD>Get an am/pm indicator <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>minutes</CODE> - the minutes within the day<DD><CODE>minWidth</CODE> - minimum width of output<DD><CODE>maxWidth</CODE> - maximum width of output <DT><B>Returns:</B><DD>the AM or PM indicator</DL> </DD> </DL> <HR> <A NAME="getOrdinalSuffixForDateTime(java.lang.String)"><!-- --></A><H3> getOrdinalSuffixForDateTime</H3> <PRE> <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>getOrdinalSuffixForDateTime</B>(<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> component)</PRE> <DL> <DD>Get an ordinal suffix for a particular component of a date/time. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>component</CODE> - the component specifier from a format-dateTime picture, for example "M" for the month or "D" for the day. <DT><B>Returns:</B><DD>a string that is acceptable in the ordinal attribute of xsl:number to achieve the required ordinal representation. For example, "-e" for the day component in German, to have the day represented as "dritte August".</DL> </DD> </DL> <HR> <A NAME="getEraName(int)"><!-- --></A><H3> getEraName</H3> <PRE> <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>getEraName</B>(int year)</PRE> <DL> <DD>Get the name for an era (e.g. "BC" or "AD") <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>year</CODE> - the proleptic gregorian year, using "0" for the year before 1AD <DT><B>Returns:</B><DD>the name of the era, for example "AD"</DL> </DD> </DL> <HR> <A NAME="getCalendarName(java.lang.String)"><!-- --></A><H3> getCalendarName</H3> <PRE> <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>getCalendarName</B>(<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)</PRE> <DL> <DD>Get the name of a calendar <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>code</CODE> - The code representing the calendar as in the XSLT 2.0 spec, e.g. AD for the Gregorian calendar <DT><B>Returns:</B><DD>the name of the calendar, for example "AD"</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/lib/NamespaceConstant.html" title="class in net.sf.saxon.lib"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/lib/OutputURIResolver.html" title="interface in net.sf.saxon.lib"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/lib/Numberer.html" target="_top"><B>FRAMES</B></A> <A HREF="Numberer.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright (c) 2004-2011 Saxonica Limited. All rights reserved. </BODY> </HTML>