当前位置:网站首页>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
边栏推荐
- To solve the problem of "double click PDF file, pop up", please install Evernote program
- Tencent music launched its new product "quyimai", which provides music commercial copyright authorization
- Teamcenter 消息注册前操作或後操作
- [performance test] full link voltage test
- 小白入门NAS—快速搭建私有云教程系列(一)[通俗易懂]
- 较文心损失一点点性能提升很多
- rsync
- 模拟百囚徒问题
- 通过SOCKS代理渗透整个内网
- EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
猜你喜欢
随机推荐
Anaconda中配置PyTorch环境——win10系统(小白包会)
nano的CAN通信
mybash
为什么阳历中平年二月是28天
使用Jmeter虚拟化table失败
Elk log analysis system
[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
毫无章法系列
Cmake tutorial Step2 (add Library)
Knowing that his daughter was molested, the 35 year old man beat the other party to minor injury level 2, and the court decided not to sue
QT控制台打印输出
Disorganized series
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
tkinter窗口预加载
JVM第三话 -- JVM性能调优实战和高频面试题记录
多线程(一) 进程与线程
OpenShift常用管理命令杂记
ITK Example