public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode) { actNode.Name = this.Name; MocaNode adornmentsNode = actNode.appendChildNode(allowedAdornmentsNodeName); MocaNode modelgenAdornmentsNode = actNode.appendChildNode(modelgenAdornmentsNodeName); MocaNode signatureNode = actNode.appendChildNode(signatureNodeName); MocaNode signatureInformationNode = actNode.appendChildNode(signatureInformationNodeName); addListEntriesToNode(adornments, adornmentsNode); addListEntriesToNode(modelgenAdornments, modelgenAdornmentsNode); addListEntriesToNode(Signature, signatureNode); addListEntriesToNode(SignatureInformation, signatureInformationNode); actNode.appendChildAttribute(informationTextNodeName, this.informationText); actNode.appendChildAttribute(userDefinedNodeName, this.UserDefined.ToString().ToLower()); actNode.appendChildAttribute(indexNodeName, this.Index.ToString()); return(actNode); }
public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode) { actNode.appendChildAttribute("constraintName", constraintName); MocaNode exprNode = actNode.appendChildNode("expressions"); foreach (Expression expr in typedInExpressions) { MocaNode expressionNode = exprNode.appendChildNode("Expression"); expr.serializeToMocaTree(expressionNode); } return(actNode); }