当前位置:网站首页>检查命名空间和类
检查命名空间和类
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
边栏推荐
- Teamcenter 消息注册前操作或后操作
- What are the changes in the 2022 PMP Exam?
- MATLAB查阅
- Leetcode daily question: the first unique character in the string
- 证券网上开户安全吗?证券融资利率一般是多少?
- Cmake tutorial Step4 (installation and testing)
- ITK Example
- 职场进阶指南:大厂人必看书籍推荐
- 删除数组中的某几个元素
- ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
猜你喜欢
2022新版PMP考试有哪些变化?
CVPR 2022 best student paper: single image estimation object pose estimation in 3D space
ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
Beijing internal promotion | the machine learning group of Microsoft Research Asia recruits full-time researchers in nlp/ speech synthesis and other directions
Redis Foundation
提高应用程序性能的7个DevOps实践
Short the command line via jar manifest or via a classpath file and rerun
提高應用程序性能的7個DevOps實踐
十个顶级自动化和编排工具
Matlab reference
随机推荐
使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
Anaconda中配置PyTorch环境——win10系统(小白包会)
Cmake tutorial Step2 (add Library)
Redis Foundation
统计php程序运行时间及设置PHP最长运行时间
PMP认证需具备哪些条件啊?费用多少啊?
提高應用程序性能的7個DevOps實踐
To solve the problem of "double click PDF file, pop up", please install Evernote program
IDC report: Tencent cloud database ranks top 2 in the relational database market!
论文阅读_医疗NLP模型_ EMBERT
The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
读libco保存恢复现场汇编代码
Teamcenter 消息注册前操作或后操作
Which is more cost-effective, haqu K1 or haqu H1? Who is more worth starting with?
Disabling and enabling inspections pycharm
"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
Beijing internal promotion | the machine learning group of Microsoft Research Asia recruits full-time researchers in nlp/ speech synthesis and other directions
十个顶级自动化和编排工具
2022 information system management engineer examination outline
求解为啥all(())是True, 而any(())是FALSE?