net.sf.saxon.option.local

Class Numberer_sv

public class Numberer_sv extends AbstractNumberer

Author: Karel Goossens BTR-Services Belgium. Numberer class for the Swedish language.

See Also: http://en.wikipedia.org/wiki/Swedish_grammar http://www2.hhs.se/isa/swedish/chap4.htm

Method Summary
StringdayName(int day, int minWidth, int maxWidth)
Get a day name or abbreviation
StringmonthName(int month, int minWidth, int maxWidth)
Get a month name or abbreviation
StringtoOrdinalWords(String ordinalParam, long number, int wordCase)
Show an ordinal number as swedish words in a requested case (for example, Twentyfirst)
StringtoWords(long number)
StringtoWords(long number, int wordCase)

Method Detail

dayName

public String dayName(int day, int minWidth, int maxWidth)
Get a day name or abbreviation

Parameters: day The day of the week (1=Monday, 7=Sunday) minWidth The minimum number of characters maxWidth The maximum number of characters

monthName

public String monthName(int month, int minWidth, int maxWidth)
Get a month name or abbreviation

Parameters: month The month number (1=January, 12=December) minWidth The minimum number of characters maxWidth The maximum number of characters

toOrdinalWords

public String toOrdinalWords(String ordinalParam, long number, int wordCase)
Show an ordinal number as swedish words in a requested case (for example, Twentyfirst)

Parameters: ordinalParam not used. number the number to be converted to a word. wordCase UPPER_CASE or LOWER_CASE.

Returns: String representing the number in words.

toWords

public String toWords(long number)

toWords

public String toWords(long number, int wordCase)