当前位置:网站首页>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 边栏推荐
- EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
- 在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
- 求解为啥all(())是True, 而any(())是FALSE?
- Is it safe to open an account online? What is the general interest rate of securities financing?
- 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
- Matlab reference
- 7 pratiques devops pour améliorer la performance des applications
- 小林coding的内存管理章节
- This 17-year-old hacker genius cracked the first generation iPhone!
- Cmake tutorial Step3 (requirements for adding libraries)
猜你喜欢

Redis Foundation

Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry

Neural network self cognition model

小林coding的内存管理章节

Cmake tutorial Step2 (add Library)

论文阅读_医疗NLP模型_ EMBERT

Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection

Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection

JVM第三话 -- JVM性能调优实战和高频面试题记录

Zabbix
随机推荐
tkinter窗口预加载
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
Numerical calculation method chapter8 Numerical solutions of ordinary differential equations
Read libco save and restore the on-site assembly code
What are the requirements for PMP certification? How much is it?
OpenShift常用管理命令杂记
Matlab reference
ITK Example
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
How to save the trained neural network model (pytorch version)
GFS分布式文件系统
请问下为啥有的表写sql能查到数据,但在数据地图里查不到啊,查表结构也搜不到
Leetcode daily question: the first unique character in the string
Disabling and enabling inspections pycharm
Sophon kg upgrade 3.1: break down barriers between data and liberate enterprise productivity
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
寻找第k小元素 前k小元素 select_k
LeetCode每日一题:合并两个有序数组
Sophon autocv: help AI industrial production and realize visual intelligent perception
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V