Package com.lowagie.text.factories
Class RomanNumberFactory
java.lang.Object
com.lowagie.text.factories.RomanNumberFactory
This class can produce String combinations representing a roman number.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Helper class for Roman Digits -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final RomanNumberFactory.RomanDigit[]
Array with Roman digits. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getLowerCaseString
(int index) Changes an int into a lower case roman number.static String
getString
(int index) Changes an int into a lower case roman number.static String
getString
(int index, boolean lowercase) Changes an int into a roman number.static String
getUpperCaseString
(int index) Changes an int into an upper case roman number.
-
Field Details
-
roman
Array with Roman digits.
-
-
Constructor Details
-
RomanNumberFactory
public RomanNumberFactory()
-
-
Method Details
-
getString
Changes an int into a lower case roman number.- Parameters:
index
- the original number- Returns:
- the roman number (lower case)
-
getLowerCaseString
Changes an int into a lower case roman number.- Parameters:
index
- the original number- Returns:
- the roman number (lower case)
-
getUpperCaseString
Changes an int into an upper case roman number.- Parameters:
index
- the original number- Returns:
- the roman number (lower case)
-
getString
Changes an int into a roman number.- Parameters:
index
- the original numberlowercase
- true for lowercase, false for uppercase- Returns:
- the roman number (lower case)
-