当前位置:网站首页>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 边栏推荐
- Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
- GFS distributed file system
- Read libco save and restore the on-site assembly code
- Binder开辟线程数过多导致主线程ANR异常
- 使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
- Disabling and enabling inspections pycharm
- ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
- Leetcode daily practice: rotating arrays
- VBA drives SAP GUI to realize office automation (II): judge whether elements exist
- 检查命名空间和类
猜你喜欢

使用Jmeter虚拟化table失败

mybash

RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测

To solve the problem of "double click PDF file, pop up", please install Evernote program

Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities

GFS分布式文件系统

Unicode processing in response of flash interface

Sophon autocv: help AI industrial production and realize visual intelligent perception

ELK日志分析系统

Nanjing University: Discussion on the training program of digital talents in the new era
随机推荐
This 17-year-old hacker genius cracked the first generation iPhone!
论文阅读_中文NLP_LTP
Leetcode exercise - 206 Reverse linked list
Please tell me why some tables can find data by writing SQL, but they can't be found in the data map, and the table structure can't be found
通过SOCKS代理渗透整个内网
Nanjing University: Discussion on the training program of digital talents in the new era
QT控制台打印输出
怎么选择外盘期货平台最正规安全?
tkinter窗口预加载
集群部署如何解决海量视频接入与大并发需求?
开户复杂吗?网上开户安全么?
外盘黄金哪个平台正规安全,怎么辨别?
Cmake tutorial Step2 (add Library)
Sophon kg upgrade 3.1: break down barriers between data and liberate enterprise productivity
Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀
从类生成XML架构
Read libco save and restore the on-site assembly code
Delete some elements in the array
每日一练:关于日期的一系列
Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry