Package com.itextpdf.kernel.numbering
Class RomanNumbering.RomanDigit
java.lang.Object
com.itextpdf.kernel.numbering.RomanNumbering.RomanDigit
- Enclosing class:
RomanNumbering
Helper class for Roman Digits
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
digit
private final char digitpart of a roman number -
value
private final int valuevalue of the roman digit -
pre
private final boolean precan the digit be used as a prefix
-
-
Constructor Details
-
RomanDigit
RomanDigit(char digit, int value, boolean pre) Constructs a roman digit- Parameters:
digit
- the roman digitvalue
- the valuepre
- can it be used as a prefix
-
-
Method Details
-
getDigit
public char getDigit()Retrieves the roman digit.- Returns:
- roman digit
-
getValue
public int getValue()Retrieves the value of the roman digit.- Returns:
- value
-
isPre
public boolean isPre()Retrieves whether the roman digit can be used as prefix.- Returns:
- true if it can, false otherwise
-