# RHEnum
Inherits from: RHObject
The RHEnum
abstract class makes it easy to define and manage enumerations.
See Enumerated Types in OpenText Content Server (opens new window) for more information on using this class.
# Class Methods
# Inherited methods
# Choices
function List choices()
# Elements
function List elements()
# Enum
function Assoc Enum()
# Mapping
function Assoc mapping()
# Name
function String name(Dynamic enumValue)
# New
function Dynamic New(Object prgCtx=Undefined)
The constructor method should never be called since RHEnum should never be instantiated.
# Overrides:
New
in class RHObject
# Random
function Integer random()
# SQLDecodeStatement
function String SQLDecodeStatement(Object prgCtx, String fieldName, String defaultValue=Undefined)
# Instance Methods
# Property Methods
Property methods can be accessed with the valueForKey
method.
choices classidentifier classname clone definitions elements enum errorassoc hash identityhashcode iterator json mapping methods okassoc propertymethods random reset serialize serializeforui string typescripttype values
# Inherited methods
assert cacheMethod cacheValueForKey callSuper checkError class classIdentifier className clone deserialize dict endTrans hash identityHashCode isAccessorMethod isCached isInstanceOf isProperty isPropertyMethod iterator methods pluck prepareForReuse propertyMethods removeFromCache reset resetCache resetSubclass respondsTo serialize setCacheValueForKey setValueForKey setValueForKeyPath setValues startTrans string super valueForKey valueForKeyPath
# definitions
function List definition()
# deserializeItem
function Dynamic deserializeItem(Dynamic item, Object genericSerializer=Undefined)
# isValid
function Boolean isValid(Dynamic value)
# json
function String json()
# serializeForUI
function List serializeForUI()
# serializeItem
function Dynamic serializeItem(Dynamic item, Object genericSerializer=Undefined)
# serializeValue
function Dynamic serializeItem(Dynamic item, Object genericSerializer=Undefined)
# typescriptType
function String typescriptType()
# values
function List values()