|
@@ -11,7 +11,7 @@ export class UAMethod extends UABaseNode {
|
|
constructor(options: UAMethodNodeOptions) {
|
|
constructor(options: UAMethodNodeOptions) {
|
|
super(options);
|
|
super(options);
|
|
Object.assign(this, options);
|
|
Object.assign(this, options);
|
|
- this.nodeClass="Method";
|
|
|
|
|
|
+ this.nodeClass="UAMethod";
|
|
}
|
|
}
|
|
|
|
|
|
static fromXML(uaMethod: any, addressSpace: IAddressSpace): UAMethod{
|
|
static fromXML(uaMethod: any, addressSpace: IAddressSpace): UAMethod{
|
|
@@ -24,6 +24,7 @@ export class UAMethod extends UABaseNode {
|
|
|
|
|
|
toXML(lnst:NamespaceTable, gnst:NamespaceTable): XMLElem {
|
|
toXML(lnst:NamespaceTable, gnst:NamespaceTable): XMLElem {
|
|
const elem =super.toXML(lnst, gnst);
|
|
const elem =super.toXML(lnst, gnst);
|
|
|
|
+ elem.name=this.nodeClass;
|
|
elem.attr("MethodDeclarationId", this.methodDeclarationId);
|
|
elem.attr("MethodDeclarationId", this.methodDeclarationId);
|
|
elem.attr("UserExecutable", this.userExecutable.toString());
|
|
elem.attr("UserExecutable", this.userExecutable.toString());
|
|
elem.attr("Executable", this.executable.toString());
|
|
elem.attr("Executable", this.executable.toString());
|