org.rococoa.contrib.appkit
Enum NSVoice.VoiceGender

java.lang.Object
  extended by java.lang.Enum<NSVoice.VoiceGender>
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.rococoa.contrib.NativeEnum
NativeEnum.Resolver
 
Enum Constant Summary
Female
           
Male
           
Neuter
           
 
Method Summary
 NSString getNativeValue()
          Get the native value associated with this enum value
static NSVoice.VoiceGender valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NSVoice.VoiceGender[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Neuter

public static final NSVoice.VoiceGender Neuter

Male

public static final NSVoice.VoiceGender Male

Female

public static final NSVoice.VoiceGender Female
Method Detail

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.