|
@@ -6,6 +6,7 @@ import { UAMethod } from './UAMethod';
|
|
import { NamespaceTable } from './NameSpaceTable';
|
|
import { NamespaceTable } from './NameSpaceTable';
|
|
import { Model } from './Model';
|
|
import { Model } from './Model';
|
|
import { XMLElem, type IToXML } from '@/util/XmlElem';
|
|
import { XMLElem, type IToXML } from '@/util/XmlElem';
|
|
|
|
+import { UAReferenceType } from './UAReferenceType';
|
|
|
|
|
|
export class UANodeSet implements IToXML{
|
|
export class UANodeSet implements IToXML{
|
|
|
|
|
|
@@ -71,6 +72,8 @@ export class UANodeSet implements IToXML{
|
|
case 'UANodeSet.UAMethod.References.Reference':
|
|
case 'UANodeSet.UAMethod.References.Reference':
|
|
case 'UANodeSet.UAVariable':
|
|
case 'UANodeSet.UAVariable':
|
|
case 'UANodeSet.UAVariable.References.Reference':
|
|
case 'UANodeSet.UAVariable.References.Reference':
|
|
|
|
+ case 'UANodeSet.UAReferenceType':
|
|
|
|
+ case 'UANodeSet.UAReferenceType.References.Reference':
|
|
return true;
|
|
return true;
|
|
default:
|
|
default:
|
|
return false;
|
|
return false;
|
|
@@ -97,6 +100,10 @@ export class UANodeSet implements IToXML{
|
|
for(const xmlMethod of xmlMethods) {
|
|
for(const xmlMethod of xmlMethods) {
|
|
nodes.push(UAMethod.fromXML(xmlMethod));
|
|
nodes.push(UAMethod.fromXML(xmlMethod));
|
|
}
|
|
}
|
|
|
|
+ const xmlReferenceTypes=xmlObj['UANodeSet']['UAReferenceType']||[];
|
|
|
|
+ for(const xmlReferenceType of xmlReferenceTypes) {
|
|
|
|
+ nodes.push(UAReferenceType.fromXML(xmlReferenceType));
|
|
|
|
+ }
|
|
const uaNamespaceUris=xmlObj['UANodeSet']['NamespaceUris']||[];
|
|
const uaNamespaceUris=xmlObj['UANodeSet']['NamespaceUris']||[];
|
|
const nst=new NamespaceTable();
|
|
const nst=new NamespaceTable();
|
|
for(const nsUri of uaNamespaceUris['Uri']||[]) {
|
|
for(const nsUri of uaNamespaceUris['Uri']||[]) {
|