当前位置:网站首页>Check namespaces and classes
Check namespaces and classes
2022-07-05 18:00:00 【User 7741497】
class %XML.Namespaces
Two class methods are provided , Can be used to check XML Namespace and its contained classes :
GetNextClass()
classmethod GetNextClass(namespace As %String,
class As %String) as %String
Return to a given XML
The next class after a given class in the namespace ( In alphabetical order ). When there are no more classes , This method returns NULL
.
GetNextNamespace()
classmethod GetNextNamespace(namespace As %String) as %String
Returns the next namespace after the given namespace ( In alphabetical order ). When there are no more namespaces , This method returns NULL
.
In both cases , Consider only current InterSystems IRIS Namespace . Besides , Mapped classes are also ignored .
for example , The following method lists the current InterSystems IRIS Namespace XML Namespace and its classes :
ClassMethod WriteNamespacesAndClasses()
{
Set ns=""
Set ns=##class(%XML.Namespaces).GetNextNamespace(ns)
While ns '=""
{
Write !, "The namespace ",ns, " contains these classes:"
Set cls=""
Set cls=##class(%XML.Namespaces).GetNextClass(ns,cls)
While cls '=""
{
Write !, " ",cls
Set cls=##class(%XML.Namespaces).GetNextClass(ns,cls)
}
Set ns=##class(%XML.Namespaces).GetNextNamespace(ns)
}
}
When executing in the terminal , This method produces the output shown below :
The namespace http://www.address.org contains these classes:
ElRef.NS.Address
GXML.AddressNS
MyApp4.Obj.Address
MyAppNS.AddressNS
Obj.Attr.Address
Obj.Ns.Address
Obj.Ns.AddressClass
The namespace http://www.doctor.com contains these classes:
GXML.DoctorNS
The namespace http://www.one.org contains these classes:
GXML.AddressNSOne
GXML.DoctorNSOne
GXML.PersonNSOne
边栏推荐
- Data access - entityframework integration
- ITK Example
- LeetCode 练习——206. 反转链表
- QT console printout
- Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
- 记一次使用Windbg分析内存“泄漏”的案例
- IDC report: Tencent cloud database ranks top 2 in the relational database market!
- 隐私计算助力数据的安全流通与共享
- nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
- Tkinter window preload
猜你喜欢
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
JVM第三话 -- JVM性能调优实战和高频面试题记录
To solve the problem of "double click PDF file, pop up", please install Evernote program
Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
Star ring technology data security management platform defender heavy release
Leetcode daily question: the first unique character in the string
Cmake tutorial step1 (basic starting point)
flask接口响应中的中文乱码(unicode)处理
Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀
mybash
随机推荐
Size_ T is unsigned
ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
Size_t 是无符号的
OpenShift常用管理命令杂记
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
南京大学:新时代数字化人才培养方案探讨
Read libco save and restore the on-site assembly code
7 pratiques devops pour améliorer la performance des applications
2022新版PMP考试有哪些变化?
Leetcode daily practice: rotating arrays
数值计算方法 Chapter8. 常微分方程的数值解
Server configuration jupyter environment
怎么选择外盘期货平台最正规安全?
使用Jmeter虚拟化table失败
修复漏洞 - mysql 、es
访问数据库使用redis作为mysql的缓存(redis和mysql结合)
Sophon autocv: help AI industrial production and realize visual intelligent perception
Anaconda中配置PyTorch环境——win10系统(小白包会)
Leetcode exercise - 206 Reverse linked list
Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀