| java.lang.Object org.mmbase.util.transformers.StringTransformer org.mmbase.util.transformers.RomanTransformer
RomanTransformer | public class RomanTransformer extends StringTransformer (Code) | | Static utilities to deal with roman numbers, and non static functions to transform strings
representing decimal numbers to roman numbers and back.
author: Michiel Meeuwissen since: MMBase-1.8 version: $Id: RomanTransformer.java,v 1.6 2007/08/04 08:09:14 michiel Exp $ |
IVXLCDM | final public static int IVXLCDM(Code) | | Constants for roman numbers
|
decimalToRoman | public static String decimalToRoman(int value)(Code) | | Converts int to roman number (if bigger than 0, smaller then 4000), other wise return the
integer as a string.
|
decimalToRomanDigit | public static char decimalToRomanDigit(int i)(Code) | | Converts an integer to one the letters of the roman number system, or ' ' if no such number.
See Also: RomanTransformer.decimalToRoman(int) |
romanToDecimal | public static int romanToDecimal(char r)(Code) | | Converts one of the letters from the roman number system to an int.
0 if could not be converted |
romanToDecimal | public static int romanToDecimal(String roman)(Code) | | Converts roman number to int.
|
|
|