%Library.DynamicObject
class %Library.DynamicObject extends %Library.DynamicAbstractObject [ Final ]
Dynamic Object type class.Method Inventory
Methods
key The key name of the value you wish to retrieve
Returns The value of the data as defined by key. If the value does not exist, a null string "" is returned. You can differentiate between an unassigned value that returns a "" string and a real "" string using %GetTypeOf()
Perform an iteration of all the values in a %DynamicAbstractObject subclass.
In the example below, we will output all values contained in a %DynamicObject.
set iter = obj.%GetIterator() while iter.%GetNext(.key , .value ) { write "key = "_key_" , value = "_value,! }
key The key name of the value you wish to test
Returns A boolean value to show if a value is defined (1) or not (0).
key The key name of the %DynamicObject element you wish to remove
Returns The value of the removed %DynamicObject element
key The key name of the value you wish to create or update.
value The new value with which to update the previous value or create a new value.
type OPTIONAL, the type of the value being assigned.
If the type argument is present then it must be one
of the following strings:
"null" - JSON null, must be ""
"boolean" - Either 0 or nonzero integer
"number" - Convert to numeric value
"string" - Convert to text string
Returns An object to the current modified object, allowing calls to set() to be nested.
Inherited Members
Inherited Methods
- %ClassIsLatestVersion()
- %ClassName()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %FromJSON()
- %GetIterator()
- %GetParameter()
- %GetTypeOf()
- %IsA()
- %New()
- %OnClose()
- %OriginalNamespace()
- %PackageName()
- %SetModified()
- %Size()
- %ToJSON()