org.rococoa.contrib.appkit
Enum NSVoice.VoiceGender
java.lang.Object
java.lang.Enum<NSVoice.VoiceGender>
org.rococoa.contrib.appkit.NSVoice.VoiceGender
- All Implemented Interfaces:
- Serializable, Comparable<NSVoice.VoiceGender>, NativeEnum<NSString>
- Enclosing class:
- NSVoice
public static enum NSVoice.VoiceGender
- extends Enum<NSVoice.VoiceGender>
- implements NativeEnum<NSString>
An enumeration representing possible genders for voices
Neuter
public static final NSVoice.VoiceGender Neuter
Male
public static final NSVoice.VoiceGender Male
Female
public static final NSVoice.VoiceGender Female
values
public static NSVoice.VoiceGender[] 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 (NSVoice.VoiceGender c : NSVoice.VoiceGender.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NSVoice.VoiceGender 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
getNativeValue
public NSString getNativeValue()
- Description copied from interface:
NativeEnum
- Get the native value associated with this enum value
- Specified by:
getNativeValue
in interface NativeEnum<NSString>
- Returns:
- the native value associated with this enum value
Copyright © 2012. All Rights Reserved.