serial class EnsLib.REST.DynamicObjVDoc
extends %SerialObject, Ens.VDoc.Interface
Abstract persistent VDoc document wrapper class for arbitrary %DynamicObject instances
This class is used internally by InterSystems IRIS.
property Obj
as %DynamicAbstractObject [ Transient ];
The in-memory object that VDoc property paths will be evaluated against; may be a DynamicArray or a DynamicObject
method %DispatchMethod(Method As %String, Args...)
Is used to implement an unknown method call. It is also used
to resolve an unknown multidimensional property reference (to get the value
of a property) because that syntax is identical to a method call.
method %OnNew(initvalue As %DynamicObject)
as %Status
This callback method is invoked by the %New method to
provide notification that a new instance of an object is being created.
If this method returns an error then the object will not be created.
It is passed the arguments provided in the %New call.
When customizing this method, override the arguments with whatever variables and types you expect to receive from %New().
For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:
Method %OnNew(dob as %Date = "", name as %Name = "") as %Status
If instead of returning a %Status code this returns an oref and this oref is a subclass of the current
class then this oref will be the one returned to the caller of %New method.
method GetValueAt(pPropertyPath As %String, pFormat As %String = "", Output pStatus As %Status)
as %String
Return the value of the designated virtual property.
pPropertyPath contains a text expression representing the address within the document of the value of interest.
pFormat contains additional context that may be used to influence the form of the result value
If no value can be found matching pPropertyPath in the current document an empty string is returned and output argument pStatus returns status information explaining the failure
This is implemented by the document subclass.
method ObjGet()
as %DynamicObject
This is a Get accessor method for the Obj property.
method ObjSet(pObj As %DynamicAbstractObject)
as %Status
This is a Set accessor method for the Obj property.