UAObject.ts 801 B

1234567891011121314151617181920212223242526272829
  1. import { XMLElem } from "@/util/XmlElem";
  2. import type { NamespaceTable } from "./NameSpaceTable";
  3. import { UABaseNode, type UABaseNodeOptions } from "./UABaseNode";
  4. import type { IAddressSpace } from "./IAddressSpace";
  5. export class UAObject extends UABaseNode {
  6. constructor(options: UAObjectNodeOptions) {
  7. super(options);
  8. this.nodeClass="Object";
  9. }
  10. static fromXML(uaObject: any, addressSpace: IAddressSpace): UAObject{
  11. const bn=super.fromXML(uaObject, addressSpace)
  12. return new UAObject(bn as UABaseNodeOptions);
  13. }
  14. toXML(lnst:NamespaceTable, gnst:NamespaceTable): XMLElem {
  15. const elem =super.toXML(lnst, gnst);
  16. return elem;
  17. }
  18. }
  19. export interface UAObjectNodeOptions extends UABaseNodeOptions{
  20. }