SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum SpeakNumeral

java.lang.Object
  extended by java.lang.Enum<SpeakNumeral>
      extended by org.axsl.common.value.SpeakNumeral
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SpeakNumeral>

public enum SpeakNumeral
extends java.lang.Enum<SpeakNumeral>

Enumeration of possible speak-numeral values.

See Also:
CSS Reference for the "speak-numeral" property.

Enum Constant Summary
CONTINUOUS
          Speak the numeral as a full number.
DIGITS
          Speak the numeral as individual digits.
 
Method Summary
static SpeakNumeral valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SpeakNumeral[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DIGITS

public static final SpeakNumeral DIGITS
Speak the numeral as individual digits. Thus, "237" is spoken "Two Three Seven". (From the CSS2 spec).


CONTINUOUS

public static final SpeakNumeral CONTINUOUS
Speak the numeral as a full number. Thus, "237" is spoken "Two hundred thirty seven". Word representations are language-dependent. (From the CSS2 spec).

Method Detail

values

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

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

valueOf

public static SpeakNumeral valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.