当前位置:网站首页>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 边栏推荐
- 模拟百囚徒问题
- Size_t 是无符号的
- OpenShift常用管理命令杂记
- Unicode processing in response of flash interface
- 最大人工岛[如何让一个连通分量的所有节点都记录总节点数?+给连通分量编号]
- 从XML架构生成类
- To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
- The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
- Server configuration jupyter environment
- 小白入门NAS—快速搭建私有云教程系列(一)[通俗易懂]
猜你喜欢

Thesis reading_ Chinese NLP_ LTP

Neural network self cognition model

VBA drives SAP GUI to realize office automation (II): judge whether elements exist

Server configuration jupyter environment

Zabbix

Zabbix

7 pratiques devops pour améliorer la performance des applications
![[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](/img/a6/aa0b8d30913dc64f3c0cd891528c40.png)
[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)

小林coding的内存管理章节
随机推荐
Seven Devops practices to improve application performance
Why is all (()) true and any (()) false?
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
使用Jmeter虚拟化table失败
Read libco save and restore the on-site assembly code
EPM related
2022新版PMP考试有哪些变化?
Interpretation: how to deal with the current security problems faced by the Internet of things?
Leetcode daily practice: rotating arrays
ITK Example
热通孔的有效放置如何改善PCB设计中的热管理?
Size_ T is unsigned
MATLAB中print函数使用
Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities
Anaconda中配置PyTorch环境——win10系统(小白包会)
为什么阳历中平年二月是28天
EPM相关
每日一练:关于日期的一系列
模拟百囚徒问题
Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry