dw.value
Class EnumValue
dw.value.EnumValue
The class represents a single value for an Enumeration type. Enumeration
types can be configured through the business manager for custom attributes.
Some system attributes, e.g. the order status, are also of Enumeration types.
Each EnumValue has a base value and a display value. The type of the base value can be either String or Integer. Every EnumValue has a display value.
If the value of an Enumeration type object attribute is
null
, when that attribute is accessed an EnumValue is returned
that has a base value of null
, rather than null
itself. This means that empty(object.attribute)
would be
false
, and empty(object.attribute.value)
would be
true
Properties
displayValue
:
String
(Read Only)
The display value of the enumeration value. If no display value
is configured the method return the string representation of the value.
value
:
Object
(Read Only)
The value of the enumeration value. This is either an integer
value or a string.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getDisplayValue()
:
String
Returns the display value of the enumeration value.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
getDisplayValue
getDisplayValue()
:
String
Returns the display value of the enumeration value. If no display value
is configured the method return the string representation of the value.
getValue
getValue()
:
Object
Returns the value of the enumeration value. This is either an integer
value or a string.
valueOf
valueOf()
:
Object
According the ECMA specification, this method returns the "natural"
primitive value of this object. Here it is equivalent to getValue().
© Copyright 2000-2024, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.