Beispiel #1
0
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute("name", this.Name);
     actNode.appendChildAttribute("value", this.Value);
     actNode.appendChildAttribute("literal", this.Literal);
     return(actNode);
 }
        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);
        }
Beispiel #4
0
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute(Main.GuidStringName, this.Guid);
     return(actNode);
 }
Beispiel #5
0
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute("domainType", this.DomainType.ToString().ToLower());
     actNode.appendChildAttribute("metamodelGuid", this.MetamodelGuid);
     return(actNode);
 }