Ens.VDoc.Utils
class Ens.VDoc.Utils extends %Library.RegisteredObject
This class contains a number of utility methods used to expose metadata of virtual document classesMethod Inventory
- EnumerateDocContentsClose()
- EnumerateDocContentsExecute()
- EnumerateDocContentsFetch()
- EnumerateDocTypesClose()
- EnumerateDocTypesExecute()
- EnumerateDocTypesFetch()
- EnumerateVDocSchemasClose()
- EnumerateVDocSchemasExecute()
- EnumerateVDocSchemasFetch()
- GetGetCode()
- GetIndexedInfoArray()
- GetInfoArray()
- GetNextCode()
- GetSetCode()
- IsVirtualDocument()
- isPseudoVDocBatchProperty()
- isSingleVirtualProperty()
- quoteDocumentPath()
Methods
classmethod EnumerateDocContentsClose(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod EnumerateDocContentsExecute(ByRef qHandle As %Binary, Class As %String, Mode As %String, DocType As %String, Level As %Integer, DotAbbrevs As %Boolean = 1, ForceObjectProps As %Boolean, pIncludeBase As %Boolean) as %Status [ Language = objectscript ]
classmethod EnumerateDocContentsFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod EnumerateDocTypesExecute(ByRef qHandle As %Binary, Class As %String, Category As %String, IncludeBase As %Boolean) as %Status [ Language = objectscript ]
classmethod EnumerateDocTypesFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod EnumerateVDocSchemasClose(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod EnumerateVDocSchemasExecute(ByRef qHandle As %Binary, VDocClass As %String = "", Std As %String = "") as %Status [ Language = objectscript ]
classmethod EnumerateVDocSchemasFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod GetGetCode(pCode As %String, pLanguage As %String, pCheckEmptyAsNull As %Boolean = 0) as %String [ Language = objectscript ]
Return the document interface expression for an expression
classmethod GetIndexedInfoArray(Output pArray, pClass As %String, pMode As %String, pDocType As %String, pMaxLevel As %Integer) as %Status [ Language = objectscript ]
Get the array of property information for the given virtual document target/source class.
This array is indexed by property name.
This array is indexed by property name.
classmethod GetInfoArray(Output pArray, pClass As %String = "", pMode As %String = "source", pDocType As %String = "", pMaxLevel As %Integer = 0, pForceObjectProps As %Boolean = 0, pNodeAddr As %String = "", pIncludeBase As %Boolean) as %Status [ Language = objectscript ]
Get one node from a (virtual) array of property information for the given target/source class.
This node is addressed by a comma-separated list of descending ordinal positions.
This node is addressed by a comma-separated list of descending ordinal positions.
classmethod GetNextCode(Output pCode, Output pComplete As %Boolean, pProperty As %String, pKey As %String, pLanguage As %String, pSC As %String = "tSCTrans") as %Status [ Language = objectscript ]
Return the document interface iterator next code
classmethod GetSetCode(Output pCode As %String, Output pComplete As %Boolean, pProperty As %String, pValue As %String, pAction As %String, pKey As %String, pLanguage As %String, pSameClass As %Boolean = 1, pAddDTLParams As %Boolean = 0) as %Status [ Language = objectscript ]
Return the Set code expression for an assign element
Find out if a given class is a Virtual Document (i.e., supports the Ens.VDoc.Interface)
classmethod isPseudoVDocBatchProperty(pObject) as %Boolean [ Language = objectscript ]
classmethod isSingleVirtualProperty(pExpression, pObject, pProperty) as %Boolean [ Language = objectscript ]
Queries
query EnumerateDocContents(Class As %String, Mode As %String = "source", DocType As %String = "", Level As %Integer = 0, DotAbbrevs As %Boolean = 1, ForceObjectProps As %Boolean = 0, pIncludeBase As %Boolean = 0)
This query returns information for the DTL editor.
For a given class and document type, it returns a list of properties.
Mode is either "target" or "source".
For a given class and document type, it returns a list of properties.
Mode is either "target" or "source".
Selects Type As %String
This query returns information for the DTL editor.
For the given class, it returns a set of document types.
For the given class, it returns a set of document types.
Selects VDocClass As %String, Category As %String, IsStd As %Boolean, Family As %String, SchemaDocExt As %String
Returns a list of document type schema categories for the given virtual document class, or for all virtual document classes that have associated schemas.
The Std parameter can be used to restrict the list.
If Std is: 0 - return only standard categories + - return only user-defined categories empty - return all categories a partial category name - return only categories starting with the given category name part
other - return nothing
The Std parameter can be used to restrict the list.
If Std is: 0 - return only standard categories + - return only user-defined categories empty - return all categories a partial category name - return only categories starting with the given category name part
other - return nothing
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()