当前位置:网站首页>检查命名空间和类
检查命名空间和类
2022-07-05 17:43:00 【用户7741497】
类%XML.Namespaces
提供了两个类方法,可用于检查XML命名空间及其包含的类:
GetNextClass()
classmethod GetNextClass(namespace As %String,
class As %String) as %String
返回给定XML
命名空间中给定类之后的下一个类(按字母顺序)。当没有更多的类时,此方法返回NULL
。
GetNextNamespace()
classmethod GetNextNamespace(namespace As %String) as %String
返回给定命名空间之后的下一个命名空间(按字母顺序)。当没有更多的命名空间时,此方法返回NULL
。
在这两种情况下,只考虑当前的InterSystems IRIS命名空间。此外,映射的类也会被忽略。
例如,以下方法列出当前InterSystems IRIS命名空间的XML命名空间及其类:
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)
}
}
在终端中执行时,此方法会生成如下所示的输出:
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
边栏推荐
- What are the requirements for PMP certification? How much is it?
- Read the history of it development in one breath
- Disabling and enabling inspections pycharm
- Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
- 提高應用程序性能的7個DevOps實踐
- Kafaka technology lesson 1
- Interpretation: how to deal with the current security problems faced by the Internet of things?
- leetcode每日一题:字符串中的第一个唯一字符
- 较文心损失一点点性能提升很多
- mybash
猜你喜欢
Compter le temps d'exécution du programme PHP et définir le temps d'exécution maximum de PHP
解决“双击pdf文件,弹出”请安装evernote程序
ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
Mask wearing detection based on yolov3
Zabbix
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
求解为啥all(())是True, 而any(())是FALSE?
EPM related
随机推荐
Leetcode daily question: the first unique character in the string
Leetcode daily question: merge two ordered arrays
Disabling and enabling inspections pycharm
[performance test] full link voltage test
Troubleshooting - about clip not found Visual Studio
开户复杂吗?网上开户安全么?
Redis基础
Read libco save and restore the on-site assembly code
如何保存训练好的神经网络模型(pytorch版本)
Cmake tutorial Step3 (requirements for adding libraries)
Career advancement Guide: recommended books for people in big factories
提高應用程序性能的7個DevOps實踐
Size_ T is unsigned
得知女儿被猥亵,35岁男子将对方打至轻伤二级,法院作出不起诉决定
Anaconda中配置PyTorch环境——win10系统(小白包会)
Thesis reading_ Chinese NLP_ LTP
Check the WiFi password connected to your computer
2022年信息系统管理工程师考试大纲
MySQL之知识点(六)
Abnormal recovery of virtual machine Oracle -- Xi Fenfei