org.rococoa.contrib
Interface NativeEnum<N extends NSObject>

Type Parameters:
N - the type of native values associated with the enum
All Known Implementing Classes:
NSSpeechDictionary.Entry.DictionaryEntryProperty, NSSpeechDictionary.SpeechDictionaryProperty, NSSpeechSynthesizer.NSSpeechCommand.CommandDelimiterProperty, NSSpeechSynthesizer.NSSpeechError.ErrorProperty, NSSpeechSynthesizer.NSSpeechMode, NSSpeechSynthesizer.NSSpeechPhonemeInfo.PhonemeInfoProperty, NSSpeechSynthesizer.NSSpeechStatus.StatusProperty, NSSpeechSynthesizer.NSSpeechSynthesizerInfo.SpeechSynthesizerInfoProperty, NSSpeechSynthesizer.SpeechProperty, NSVoice.VoiceGender, NSVoice.VoiceProperty

public interface NativeEnum<N extends NSObject>

An interface for Enumerations that derive their actual values from native code. e.g. many header files contain groups of related String or Integer constants that have may be passed into the APIs defined in the header.


Nested Class Summary
static class NativeEnum.Resolver
          Given a native value, resolve the corresponding enum entry.
 
Method Summary
 N getNativeValue()
          Get the native value associated with this enum value
 

Method Detail

getNativeValue

N getNativeValue()
Get the native value associated with this enum value

Returns:
the native value associated with this enum value


Copyright © 2012. All Rights Reserved.