org.odftoolkit.simple.style
Enum NumberFormat

java.lang.Object
  extended by java.lang.Enum<NumberFormat>
      extended by org.odftoolkit.simple.style.NumberFormat
All Implemented Interfaces:
Serializable, Comparable<NumberFormat>

public enum NumberFormat
extends Enum<NumberFormat>

A NumberFormat specifies a numbering sequence.

Since:
0.5

Enum Constant Summary
HINDU_ARABIC_NUMBER
           
LOWERCASE_LATIN_ALPHABET
           
LOWERCASE_ROMAN_NUMBER
           
UPPERCASE_LATIN_ALPHABET
           
UPPERCASE_ROMAN_NUMBER
           
 
Method Summary
 String toString()
           
static NumberFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NumberFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HINDU_ARABIC_NUMBER

public static final NumberFormat HINDU_ARABIC_NUMBER

LOWERCASE_LATIN_ALPHABET

public static final NumberFormat LOWERCASE_LATIN_ALPHABET

UPPERCASE_LATIN_ALPHABET

public static final NumberFormat UPPERCASE_LATIN_ALPHABET

LOWERCASE_ROMAN_NUMBER

public static final NumberFormat LOWERCASE_ROMAN_NUMBER

UPPERCASE_ROMAN_NUMBER

public static final NumberFormat UPPERCASE_ROMAN_NUMBER
Method Detail

values

public static NumberFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NumberFormat c : NumberFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NumberFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<NumberFormat>


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.