<!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:12 GMT 2011 --> <TITLE> AbstractNumberer </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="AbstractNumberer"; } } </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"> PREV CLASS <A HREF="../../../../../net/sf/saxon/expr/number/Alphanumeric.html" title="class in net.sf.saxon.expr.number"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?net/sf/saxon/expr/number/AbstractNumberer.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractNumberer.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.expr.number</FONT> <BR> Class AbstractNumberer</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.expr.number.AbstractNumberer</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>, <A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><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_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 abstract class <B>AbstractNumberer</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="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A>, <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> Class AbstractNumberer is a base implementation of Numberer that provides language-independent default numbering This supports the xsl:number element. Methods and data are declared as protected, and static is avoided, to allow easy subclassing. <P> <P> <DL> <DT><B>Author:</B></DT> <DD>Michael H. Kay</DD> <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#net.sf.saxon.expr.number.AbstractNumberer">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>protected static <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/expr/number/AbstractNumberer.html#cyrillicLower">cyrillicLower</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#cyrillicUpper">cyrillicUpper</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#greekLower">greekLower</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#greekUpper">greekUpper</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#hebrew">hebrew</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#hiraganaA">hiraganaA</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#hiraganaI">hiraganaI</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#katakanaA">katakanaA</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#katakanaI">katakanaI</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#latinLower">latinLower</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <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/expr/number/AbstractNumberer.html#latinUpper">latinUpper</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#LOWER_CASE">LOWER_CASE</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#TITLE_CASE">TITLE_CASE</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#UPPER_CASE">UPPER_CASE</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static int[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#westernDigits">westernDigits</A></B></CODE> <BR> </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/expr/number/AbstractNumberer.html#AbstractNumberer()">AbstractNumberer</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#alphaDefault(long, char, net.sf.saxon.tree.util.FastStringBuffer)">alphaDefault</A></B>(long number, char formchar, <A HREF="../../../../../net/sf/saxon/tree/util/FastStringBuffer.html" title="class in net.sf.saxon.tree.util">FastStringBuffer</A> sb)</CODE> <BR> Default processing with an alphabetic format token: use the contiguous range of Unicode letters starting with that token.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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> numGroupFormatter, <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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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/expr/number/AbstractNumberer.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>abstract <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/expr/number/AbstractNumberer.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>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#ordinalSuffix(java.lang.String, long)">ordinalSuffix</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> ordinalParam, long number)</CODE> <BR> Construct the ordinal suffix for a number, for example "st", "nd", "rd".</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/expr/number/AbstractNumberer.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 (currenly used only for names of timezones)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#toAlpha(long, int, int)">toAlpha</A></B>(long number, int min, int max)</CODE> <BR> Format the number as an alphabetic label using the alphabet consisting of consecutive Unicode characters from min to max</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#toAlphaSequence(long, java.lang.String)">toAlphaSequence</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> alphabet)</CODE> <BR> Convert the number into an alphabetic label using a given alphabet.</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/expr/number/AbstractNumberer.html#toJapanese(long)">toJapanese</A></B>(long number)</CODE> <BR> Format the number in Japanese.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <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/expr/number/AbstractNumberer.html#toOrdinalWords(java.lang.String, long, int)">toOrdinalWords</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> ordinalParam, long number, int wordCase)</CODE> <BR> Show an ordinal number as English words in a requested case (for example, Twentyfirst)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <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/expr/number/AbstractNumberer.html#toRoman(long)">toRoman</A></B>(long n)</CODE> <BR> Generate a Roman numeral (in lower case)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <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/expr/number/AbstractNumberer.html#toWords(long)">toWords</A></B>(long number)</CODE> <BR> Show the number as words in title case.</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/expr/number/AbstractNumberer.html#toWords(long, int)">toWords</A></B>(long number, int wordCase)</CODE> <BR> Format a number as English words with specified case options</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="UPPER_CASE"><!-- --></A><H3> UPPER_CASE</H3> <PRE> public static final int <B>UPPER_CASE</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.UPPER_CASE">Constant Field Values</A></DL> </DL> <HR> <A NAME="LOWER_CASE"><!-- --></A><H3> LOWER_CASE</H3> <PRE> public static final int <B>LOWER_CASE</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.LOWER_CASE">Constant Field Values</A></DL> </DL> <HR> <A NAME="TITLE_CASE"><!-- --></A><H3> TITLE_CASE</H3> <PRE> public static final int <B>TITLE_CASE</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.TITLE_CASE">Constant Field Values</A></DL> </DL> <HR> <A NAME="westernDigits"><!-- --></A><H3> westernDigits</H3> <PRE> protected static final int[] <B>westernDigits</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="latinUpper"><!-- --></A><H3> latinUpper</H3> <PRE> protected static final <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>latinUpper</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.latinUpper">Constant Field Values</A></DL> </DL> <HR> <A NAME="latinLower"><!-- --></A><H3> latinLower</H3> <PRE> protected static final <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>latinLower</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.latinLower">Constant Field Values</A></DL> </DL> <HR> <A NAME="greekUpper"><!-- --></A><H3> greekUpper</H3> <PRE> protected static final <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>greekUpper</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.greekUpper">Constant Field Values</A></DL> </DL> <HR> <A NAME="greekLower"><!-- --></A><H3> greekLower</H3> <PRE> protected static final <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>greekLower</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.greekLower">Constant Field Values</A></DL> </DL> <HR> <A NAME="cyrillicUpper"><!-- --></A><H3> cyrillicUpper</H3> <PRE> protected static final <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>cyrillicUpper</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.cyrillicUpper">Constant Field Values</A></DL> </DL> <HR> <A NAME="cyrillicLower"><!-- --></A><H3> cyrillicLower</H3> <PRE> protected static final <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>cyrillicLower</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.cyrillicLower">Constant Field Values</A></DL> </DL> <HR> <A NAME="hebrew"><!-- --></A><H3> hebrew</H3> <PRE> protected static final <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>hebrew</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.hebrew">Constant Field Values</A></DL> </DL> <HR> <A NAME="hiraganaA"><!-- --></A><H3> hiraganaA</H3> <PRE> protected static final <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>hiraganaA</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.hiraganaA">Constant Field Values</A></DL> </DL> <HR> <A NAME="katakanaA"><!-- --></A><H3> katakanaA</H3> <PRE> protected static final <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>katakanaA</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.katakanaA">Constant Field Values</A></DL> </DL> <HR> <A NAME="hiraganaI"><!-- --></A><H3> hiraganaI</H3> <PRE> protected static final <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>hiraganaI</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.hiraganaI">Constant Field Values</A></DL> </DL> <HR> <A NAME="katakanaI"><!-- --></A><H3> katakanaI</H3> <PRE> protected static final <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>katakanaI</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.expr.number.AbstractNumberer.katakanaI">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="AbstractNumberer()"><!-- --></A><H3> AbstractNumberer</H3> <PRE> public <B>AbstractNumberer</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="setCountry(java.lang.String)"><!-- --></A><H3> setCountry</H3> <PRE> public 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 (currenly used only for names of timezones) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#setCountry(java.lang.String)">setCountry</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#getCountry()">getCountry</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the country used by this numberer, or null if no country has been set</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> public final <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. This method is provided for backwards compatibility. It merely calls the other format method after constructing a RegularGroupFormatter. The method is final; localization subclasses should implement the method <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#format(long, java.lang.String, net.sf.saxon.expr.number.NumericGroupFormatter, java.lang.String, java.lang.String)"><CODE>format(long, String, NumericGroupFormatter, String, String)</CODE></A> rather than this method. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><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></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public <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> numGroupFormatter, <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> <DT><B>Specified by:</B><DD><CODE><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></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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>numGroupFormatter</CODE> - object contains separators 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="ordinalSuffix(java.lang.String, long)"><!-- --></A><H3> ordinalSuffix</H3> <PRE> protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>ordinalSuffix</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> ordinalParam, long number)</PRE> <DL> <DD>Construct the ordinal suffix for a number, for example "st", "nd", "rd". The default (language-neutral) implementation returns a zero-length string <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ordinalParam</CODE> - the value of the ordinal attribute (used in non-English language implementations)<DD><CODE>number</CODE> - the number being formatted <DT><B>Returns:</B><DD>the ordinal suffix to be appended to the formatted number</DL> </DD> </DL> <HR> <A NAME="alphaDefault(long, char, net.sf.saxon.tree.util.FastStringBuffer)"><!-- --></A><H3> alphaDefault</H3> <PRE> protected void <B>alphaDefault</B>(long number, char formchar, <A HREF="../../../../../net/sf/saxon/tree/util/FastStringBuffer.html" title="class in net.sf.saxon.tree.util">FastStringBuffer</A> sb)</PRE> <DL> <DD>Default processing with an alphabetic format token: use the contiguous range of Unicode letters starting with that token. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted<DD><CODE>formchar</CODE> - the format character, for example 'A' for the numbering sequence A,B,C<DD><CODE>sb</CODE> - buffer to hold the result of the formatting</DL> </DD> </DL> <HR> <A NAME="toAlpha(long, int, int)"><!-- --></A><H3> toAlpha</H3> <PRE> protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toAlpha</B>(long number, int min, int max)</PRE> <DL> <DD>Format the number as an alphabetic label using the alphabet consisting of consecutive Unicode characters from min to max <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted<DD><CODE>min</CODE> - the start of the Unicode codepoint range<DD><CODE>max</CODE> - the end of the Unicode codepoint range <DT><B>Returns:</B><DD>the formatted number</DL> </DD> </DL> <HR> <A NAME="toAlphaSequence(long, java.lang.String)"><!-- --></A><H3> toAlphaSequence</H3> <PRE> protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toAlphaSequence</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> alphabet)</PRE> <DL> <DD>Convert the number into an alphabetic label using a given alphabet. For example, if the alphabet is "xyz" the sequence is x, y, z, xx, xy, xz, .... <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted<DD><CODE>alphabet</CODE> - a string containing the characters to be used, for example "abc...xyz" <DT><B>Returns:</B><DD>the formatted number</DL> </DD> </DL> <HR> <A NAME="toRoman(long)"><!-- --></A><H3> toRoman</H3> <PRE> public static <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>toRoman</B>(long n)</PRE> <DL> <DD>Generate a Roman numeral (in lower case) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>n</CODE> - the number to be formatted <DT><B>Returns:</B><DD>the Roman numeral representation of the number in lower case</DL> </DD> </DL> <HR> <A NAME="toJapanese(long)"><!-- --></A><H3> toJapanese</H3> <PRE> public <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>toJapanese</B>(long number)</PRE> <DL> <DD>Format the number in Japanese. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted: formatted in Western decimal style unless in the range 1 to 9999 <DT><B>Returns:</B><DD>the Japanese Kanji representation of the number if in the range 1-9999</DL> </DD> </DL> <HR> <A NAME="toWords(long)"><!-- --></A><H3> toWords</H3> <PRE> public abstract <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>toWords</B>(long number)</PRE> <DL> <DD>Show the number as words in title case. (We choose title case because the result can then be converted algorithmically to lower case or upper case). <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted <DT><B>Returns:</B><DD>the number formatted as English words</DL> </DD> </DL> <HR> <A NAME="toWords(long, int)"><!-- --></A><H3> toWords</H3> <PRE> public <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>toWords</B>(long number, int wordCase)</PRE> <DL> <DD>Format a number as English words with specified case options <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to be formatted<DD><CODE>wordCase</CODE> - the required case for example <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#UPPER_CASE"><CODE>UPPER_CASE</CODE></A>, <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#LOWER_CASE"><CODE>LOWER_CASE</CODE></A>, <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#TITLE_CASE"><CODE>TITLE_CASE</CODE></A> <DT><B>Returns:</B><DD>the formatted number</DL> </DD> </DL> <HR> <A NAME="toOrdinalWords(java.lang.String, long, int)"><!-- --></A><H3> toOrdinalWords</H3> <PRE> public abstract <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>toOrdinalWords</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> ordinalParam, long number, int wordCase)</PRE> <DL> <DD>Show an ordinal number as English words in a requested case (for example, Twentyfirst) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ordinalParam</CODE> - the value of the "ordinal" attribute as supplied by the user<DD><CODE>number</CODE> - the number to be formatted<DD><CODE>wordCase</CODE> - the required case for example <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#UPPER_CASE"><CODE>UPPER_CASE</CODE></A>, <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#LOWER_CASE"><CODE>LOWER_CASE</CODE></A>, <A HREF="../../../../../net/sf/saxon/expr/number/AbstractNumberer.html#TITLE_CASE"><CODE>TITLE_CASE</CODE></A> <DT><B>Returns:</B><DD>the formatted number</DL> </DD> </DL> <HR> <A NAME="monthName(int, int, int)"><!-- --></A><H3> monthName</H3> <PRE> public abstract <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#monthName(int, int, int)">monthName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public abstract <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#dayName(int, int, int)">dayName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>day</CODE> - The day of the week (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> public <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. Default implementation works for English, on the basis that some other languages might like to copy this (most non-English countries don't actually use the 12-hour clock, so it's irrelevant). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#halfDayName(int, int, int)">halfDayName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#getOrdinalSuffixForDateTime(java.lang.String)">getOrdinalSuffixForDateTime</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#getEraName(int)">getEraName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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> public <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> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html#getCalendarName(java.lang.String)">getCalendarName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/lib/Numberer.html" title="interface in net.sf.saxon.lib">Numberer</A></CODE></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"> PREV CLASS <A HREF="../../../../../net/sf/saxon/expr/number/Alphanumeric.html" title="class in net.sf.saxon.expr.number"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?net/sf/saxon/expr/number/AbstractNumberer.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractNumberer.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>