|
@@ -3,14 +3,11 @@ import { coerceNodeId, NodeId } from "./NodeId";
|
|
import { UAReference } from "./UAReference";
|
|
import { UAReference } from "./UAReference";
|
|
import { assert } from "@/util/assert";
|
|
import { assert } from "@/util/assert";
|
|
import { XMLElem, type IToXML } from "@/util/XmlElem";
|
|
import { XMLElem, type IToXML } from "@/util/XmlElem";
|
|
-import { UARolePermission } from "./UARolePermission"; //TODO
|
|
|
|
-import { UAExtension } from "./UAExtension"; //TODO
|
|
|
|
-import { UAUserWriteMask } from "./UAUserWriteMask"; //TODO
|
|
|
|
-import { UAWriteMask } from "./UAWriteMask"; //TODO
|
|
|
|
-import { UAAccessRestriction } from "./UAAccessRestriction"; //TODO
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+import { UARolePermission } from "./UARolePermission";
|
|
|
|
+import { UAExtension } from "./UAExtension";
|
|
|
|
+import { UAUserWriteMask } from "./UAUserWriteMask";
|
|
|
|
+import { UAWriteMask } from "./UAWriteMask";
|
|
|
|
+import { UAAccessRestriction } from "./UAAccessRestriction";
|
|
export class UABaseNode implements IToXML{
|
|
export class UABaseNode implements IToXML{
|
|
|
|
|
|
public nodeId: NodeId;
|
|
public nodeId: NodeId;
|
|
@@ -62,9 +59,9 @@ export class UABaseNode implements IToXML{
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
- //setParent(node: UABaseNode, refType: String) {
|
|
|
|
-
|
|
|
|
- //}
|
|
|
|
|
|
+ setParent(node: UABaseNode, refType: String) {
|
|
|
|
+ //TODO replace parent-like references in both directions.
|
|
|
|
+ }
|
|
|
|
|
|
getParentRef(): UAReference|null{
|
|
getParentRef(): UAReference|null{
|
|
for(const ref of this.references) {
|
|
for(const ref of this.references) {
|
|
@@ -83,8 +80,6 @@ export class UABaseNode implements IToXML{
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
getChildren(): UABaseNode[] {
|
|
getChildren(): UABaseNode[] {
|
|
const children: UABaseNode[]=[];
|
|
const children: UABaseNode[]=[];
|
|
@@ -155,7 +150,7 @@ export class UABaseNode implements IToXML{
|
|
return ua;
|
|
return ua;
|
|
}
|
|
}
|
|
|
|
|
|
- toXML(lnst: NamespaceTable, gnst: NamespaceTable): XMLElem {
|
|
|
|
|
|
+ toXML(_lnst: NamespaceTable, _gnst: NamespaceTable): XMLElem {
|
|
throw new Error("UABaseNode has no xml rep; implement in subtype.");
|
|
throw new Error("UABaseNode has no xml rep; implement in subtype.");
|
|
}
|
|
}
|
|
|
|
|