当前位置:网站首页>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
边栏推荐
- Binder开辟线程数过多导致主线程ANR异常
- 多线程(一) 进程与线程
- 较文心损失一点点性能提升很多
- Abnormal recovery of virtual machine Oracle -- Xi Fenfei
- Which platform of outer disk gold is regular and safe, and how to distinguish it?
- Zabbix
- Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
- Disabling and enabling inspections pycharm
- 登录连接 CDB 和 PDB
- 毫无章法系列
猜你喜欢
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business
Server configuration jupyter environment
ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
Why is all (()) true and any (()) false?
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
Mask wearing detection based on yolov3
每日一练:关于日期的一系列
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
Tencent music launched its new product "quyimai", which provides music commercial copyright authorization
随机推荐
OpenShift常用管理命令杂记
Read libco save and restore the on-site assembly code
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
Thesis reading_ Medical NLP model_ EMBERT
Leetcode daily question: the first unique character in the string
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
Oracle recovery tools -- Oracle database recovery tool
MATLAB中print函数使用
[performance test] full link voltage test
Is it safe to open an account online? What is the general interest rate of securities financing?
Daily exercise: a series of dates
nano的CAN通信
含重复元素取不重复子集[如何取子集?如何去重?]
rsync
Cmake tutorial Step2 (add Library)
QT console printout
如何修改mysql字段为自增长字段
flask接口响应中的中文乱码(unicode)处理
ELK日志分析系统
VBA drives SAP GUI to realize office automation (II): judge whether elements exist