|
@@ -128,6 +128,15 @@ export class UABaseNode implements IToXML{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ getModellingRule(): string|undefined{
|
|
|
|
+ this.references.forEach((ref)=>{
|
|
|
|
+ if(ref.referenceType == "HasModellingRule"){
|
|
|
|
+ return ref.toNode.displayName;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return undefined;
|
|
|
|
+ }
|
|
|
|
+
|
|
static fromXML(xmlObject: any): UABaseNode{
|
|
static fromXML(xmlObject: any): UABaseNode{
|
|
const xmlReferences=xmlObject['References']||[];
|
|
const xmlReferences=xmlObject['References']||[];
|
|
const references:UAReference[]=[];
|
|
const references:UAReference[]=[];
|