|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Numberer
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
| Method Summary | |
|---|---|
String |
dayName(int day,
int minWidth,
int maxWidth)
Get a day name or abbreviation |
String |
format(long number,
String picture,
int groupSize,
String groupSeparator,
String letterValue,
String ordinal)
Format a number into a string |
String |
halfDayName(int minutes,
int minWidth,
int maxWidth)
Get an am/pm indicator |
String |
monthName(int month,
int minWidth,
int maxWidth)
Get a month name or abbreviation |
| Method Detail |
|---|
String format(long number,
String picture,
int groupSize,
String groupSeparator,
String letterValue,
String ordinal)
number - The number to be formattedpicture - The format token. This is a single component of the format attribute
of xsl:number, e.g. "1", "01", "i", or "a"groupSize - number of digits per group (0 implies no grouping)groupSeparator - string to appear between groups of digitsletterValue - The letter-value specified to xsl:number: "alphabetic" or
"traditional". Can also be an empty string or null.ordinal - 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
String monthName(int month,
int minWidth,
int maxWidth)
month - The month number (1=January, 12=December)minWidth - The minimum number of charactersmaxWidth - The maximum number of characters
String dayName(int day,
int minWidth,
int maxWidth)
day - The month number (1=Monday, 7=Sunday)minWidth - The minimum number of charactersmaxWidth - The maximum number of characters
String halfDayName(int minutes,
int minWidth,
int maxWidth)
minutes - the minutes within the dayminWidth - minimum width of outputmaxWidth - maximum width of output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||