ROEnumMetaData

Overview

This is the base class for building enumeration value to string converters. Concrete descendants of this class are generated by codegen for every enum defined in the corresponding RODL. Natively Objective C enums are nothing more but integer constants and there is no native method to convert an integer value of the enum to a string looking similar to how it is defined in the source code (and vice versa) at run time. Such conversion is necessary for text based messaging protocols such as SOAP and JSON.

Location


Properties


typeName

@property (readonly) nonnull NSString *typeName

Instance Methods


stringFromValue:

- (nonnull NSString *) stringFromValue:(NSUInteger)value

Parameters:

  • value:

valueFromString:

- (NSUInteger) valueFromString:(nonnull NSString *)string

Parameters:

  • string: