com.itextpdf.text.factories
Class RomanNumberFactory

java.lang.Object
  extended by com.itextpdf.text.factories.RomanNumberFactory

public class RomanNumberFactory
extends Object

This class can produce String combinations representing a roman number.


Constructor Summary
RomanNumberFactory()
           
 
Method Summary
static 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RomanNumberFactory

public RomanNumberFactory()
Method Detail

getString

public static final String getString(int index)
Changes an int into a lower case roman number.

Parameters:
index - the original number
Returns:
the roman number (lower case)

getLowerCaseString

public static final String getLowerCaseString(int index)
Changes an int into a lower case roman number.

Parameters:
index - the original number
Returns:
the roman number (lower case)

getUpperCaseString

public static final String getUpperCaseString(int index)
Changes an int into an upper case roman number.

Parameters:
index - the original number
Returns:
the roman number (lower case)

getString

public static final String getString(int index,
                                     boolean lowercase)
Changes an int into a roman number.

Parameters:
index - the original number
lowercase - true for lowercase, false otherwise
Returns:
the roman number (lower case)


Copyright © 2013. All Rights Reserved.